summaryrefslogtreecommitdiff
path: root/mingling/src/program.rs
diff options
context:
space:
mode:
Diffstat (limited to 'mingling/src/program.rs')
-rw-r--r--mingling/src/program.rs15
1 files changed, 7 insertions, 8 deletions
diff --git a/mingling/src/program.rs b/mingling/src/program.rs
index 9463084..22488ba 100644
--- a/mingling/src/program.rs
+++ b/mingling/src/program.rs
@@ -65,15 +65,14 @@ where
};
// Render result
- if stdout_setting.render_output
- && !result.is_empty() {
- print!("{}", result);
- if let Err(e) = tokio::io::stdout().flush().await
- && stdout_setting.error_output
- {
- eprintln!("{}", e);
- }
+ if stdout_setting.render_output && !result.is_empty() {
+ print!("{}", result);
+ if let Err(e) = tokio::io::stdout().flush().await
+ && stdout_setting.error_output
+ {
+ eprintln!("{}", e);
}
+ }
}
}