don't wrap code block in Ok() (clipppy::unit_arg)

This commit is contained in:
Matthias Krüger 2020-12-05 13:12:07 +01:00
parent 5e6e1e33a1
commit dbe3acfaeb

View File

@ -198,7 +198,7 @@ simply delete the `pre-commit` file from .git/hooks."
};
};
Ok(if should_install {
if should_install {
let src = src_path.join("src").join("etc").join("pre-commit.sh");
let git = t!(Command::new("git").args(&["rev-parse", "--git-common-dir"]).output().map(
|output| {
@ -217,5 +217,6 @@ simply delete the `pre-commit` file from .git/hooks."
};
} else {
println!("Ok, skipping installation!");
})
}
Ok(())
}