Skip to content

Commit df89257

Browse files
committed
use standard token instead of 'and', 'or'
1 parent 4a2f68a commit df89257

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

tools/liquid-audio/cli.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ int main(int argc, char ** argv) {
133133
LOG("\n");
134134

135135
// write output
136-
if (not generated_audio.empty()) {
136+
if (!generated_audio.empty()) {
137137
if (params.out_file.empty()) {
138138
LOG_ERR("ERR: --output is required for audio generation\n");
139139
return 1;
@@ -144,7 +144,7 @@ int main(int argc, char ** argv) {
144144
LOG("=== GENERATED AUDIO ===\nSaved to %s\n\n", params.out_file.c_str());
145145
}
146146

147-
if (not generated_text.empty()) {
147+
if (!generated_text.empty()) {
148148
LOG("=== GENERATED TEXT ===\n%s\n\n", generated_text.c_str());
149149
}
150150

tools/liquid-audio/runner.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ class Runner::RunnerImpl {
485485
text_done = true;
486486
}
487487

488-
if (modality_left == 0 or text_done) {
488+
if (modality_left == 0 || text_done) {
489489
modality_left = interleaved_n_audio;
490490
current_modality = Modality::AUDIO_OUT;
491491
}
@@ -498,7 +498,7 @@ class Runner::RunnerImpl {
498498
}
499499

500500
modality_left -= 1;
501-
if (modality_left == 0 and not text_done) {
501+
if (modality_left == 0 && !text_done) {
502502
current_modality = Modality::TEXT;
503503
modality_left = interleaved_n_text;
504504
}

0 commit comments

Comments
 (0)