Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
fzyzcjy committed Jan 3, 2025
1 parent 8ded8c2 commit 6f9f638
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions frb_codegen/src/library/commands/command_runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,15 +157,13 @@ pub(crate) fn execute_command<'a>(
warn!("See keywords such as `error` in command output. Maybe there is a problem? command={:?} stdout={:?}", cmd, stdout);
// frb-coverage:ignore-end
}
} else {
if options.log_when_error.unwrap_or(true) {
warn!(
"command={:?} stdout={} stderr={}",
cmd,
stdout,
String::from_utf8_lossy(&result.stderr)
);
}
} else if options.log_when_error.unwrap_or(true) {
warn!(
"command={:?} stdout={} stderr={}",
cmd,
stdout,
String::from_utf8_lossy(&result.stderr)
);
}
Ok(result)
}
Expand Down

0 comments on commit 6f9f638

Please sign in to comment.