mirror of
https://github.com/casey/just.git
synced 2024-11-23 20:15:05 +03:00
Remove unnecessary return
This commit is contained in:
parent
2bc7485801
commit
9118d39903
@ -167,7 +167,7 @@ fn run_backtick<'a>(raw: &str, _token: &Token<'a>) -> Result<String, RunError<'a
|
||||
return Err(backtick_error_from_signal(output.status));
|
||||
}
|
||||
match std::str::from_utf8(&output.stdout) {
|
||||
Err(error) => return Err(RunError::BacktickUtf8Error{utf8_error: error}),
|
||||
Err(error) => Err(RunError::BacktickUtf8Error{utf8_error: error}),
|
||||
Ok(utf8) => {
|
||||
Ok(if utf8.ends_with('\n') {
|
||||
&utf8[0..utf8.len()-1]
|
||||
|
Loading…
Reference in New Issue
Block a user