Skip to content

Commit dbe3acf

Browse files
committed
don't wrap code block in Ok() (clipppy::unit_arg)
1 parent 5e6e1e3 commit dbe3acf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/bootstrap/setup.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ simply delete the `pre-commit` file from .git/hooks."
198198
};
199199
};
200200

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

0 commit comments

Comments
 (0)