Skip to content

Commit

Permalink
fixed clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
wraithan committed Jun 16, 2019
1 parent c6e8a90 commit 419ebaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/git.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pub fn git_check() {
.args(&["status", "--porcelain"])
.output()
.expect("This tool requires git. Please install git and try again.");
if output.stdout.len() > 0 {
if !output.stdout.is_empty() {
panic!("Working directory is not clean. Please commit changes before trying to update the version.");
}
}
Expand Down

0 comments on commit 419ebaf

Please sign in to comment.