Skip to content

Commit

Permalink
Remove redundant true equality comparison
Browse files Browse the repository at this point in the history
Reason:
        In this case we already have a boolean value.
        So, no need to compare it against anything.
        Just go with it! :-)
  • Loading branch information
Bogdan Arabadzhi authored and xcambar committed Oct 18, 2017
1 parent 221c161 commit e062634
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/precmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ fn repo_status(r: &Repository) -> String {
if is_dirty { break }
}
let mut out = vec![shorthand];
if is_dirty == true {
if is_dirty {
out.push(Red.bold().paint("*"));
}

Expand Down

0 comments on commit e062634

Please sign in to comment.