Skip to content

Commit

Permalink
cli: Drop a duplicate rootfs open
Browse files Browse the repository at this point in the history
Just happened to notice this.

Signed-off-by: Colin Walters <[email protected]>
  • Loading branch information
cgwalters committed Jun 20, 2024
1 parent c0a524a commit d6bb30c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -700,8 +700,7 @@ async fn run_from_opt(opt: Opt) -> Result<()> {
);
}

let root = cap_std::fs::Dir::open_ambient_dir("/", cap_std::ambient_authority())?;
lints::lint(&root)?;
lints::lint(root)?;
Ok(())
}
},
Expand Down

0 comments on commit d6bb30c

Please sign in to comment.