Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
igtm committed Mar 6, 2023
1 parent 627b4cf commit 7985517
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ fn get_merge_base(feature_hash: &str, base: &str) -> String {
.expect("failed to execute process");
let out = std::str::from_utf8(&merge_base.stdout).unwrap();
out.strip_suffix("\r\n")
.or(out.strip_suffix("\n"))
.or_else(|| out.strip_suffix('\n'))
.unwrap_or(out)
.to_owned()
}
Expand Down

0 comments on commit 7985517

Please sign in to comment.