Skip to content

Commit b9b9310

Browse files
committed
Minor cleanup
1 parent 341f006 commit b9b9310

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/main.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,11 @@ fn try_main() -> MainResult<i32> {
167167
gen_pkg_and_compile(&action)?;
168168

169169
// Once we're done, clean out old packages from the cache.
170-
// There's no point if we've already done a full clear, though.
171170
let _defer_clear = {
172-
// To get around partially moved args problems.
173-
let cc = args.clear_cache;
174171
Defer::<_, MainError>::new(move || {
175-
if !cc {
172+
if args.clear_cache {
173+
// Do nothing if cache was cleared explicitly.
174+
} else {
176175
clean_cache(consts::MAX_CACHE_AGE_MS)?;
177176
}
178177
Ok(())

0 commit comments

Comments
 (0)