summaryrefslogtreecommitdiffstats
path: root/src/app/query.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/query.rs')
-rw-r--r--src/app/query.rs11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/app/query.rs b/src/app/query.rs
index a894577e..20798716 100644
--- a/src/app/query.rs
+++ b/src/app/query.rs
@@ -670,16 +670,7 @@ impl Prefix {
}),
PrefixType::Pid => r.is_match(process.pid.to_string().as_str()),
PrefixType::State => r.is_match(process.process_state.0.as_str()),
- PrefixType::User => {
- #[cfg(target_family = "unix")]
- {
- r.is_match(process.user.as_ref())
- }
- #[cfg(not(target_family = "unix"))]
- {
- false
- }
- }
+ PrefixType::User => r.is_match(process.user.as_ref()),
_ => true,
}
} else {