Skip to content

Commit

Permalink
Merge pull request #4 from igtm/feature/fix-lint
Browse files Browse the repository at this point in the history
fix lint
  • Loading branch information
igtm authored Mar 6, 2023
2 parents 627b4cf + 7985517 commit 13f979b
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 13f979b

Please sign in to comment.