diff --git a/Userland/pidof.cpp b/Userland/pidof.cpp index e1aa005e29..05de8f589d 100644 --- a/Userland/pidof.cpp +++ b/Userland/pidof.cpp @@ -16,7 +16,7 @@ static int pid_of(const String& process_name, bool single_shot, bool omit_pid, p for (auto& it : processes) { if (it.value.name == process_name) { - if (!omit_pid || (omit_pid && it.value.pid != pid)) { + if (!omit_pid || it.value.pid != pid) { printf("%d ", it.value.pid); displayed_at_least_one = true;