Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Dec 21, 2024
1 parent 46e9034 commit c5afd0d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/processes/nix_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ fn is_system(process: &Process) -> bool {
// process.user_id() returns 0 even if process is started using `sudo`
return process
.user_id()
.and_then(|uid| sysinfo::Uid::try_from(1000).ok().map(|uid_1000| uid < &uid_1000))
.and_then(|uid| {
sysinfo::Uid::try_from(1000)
.ok()
.map(|uid_1000| uid < &uid_1000)
})
.unwrap_or(false);
}

Expand Down

0 comments on commit c5afd0d

Please sign in to comment.