mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:17:44 +00:00
pidof: Remove redundant bool check.
Found by PVS-Studio.
This commit is contained in:
parent
b2aea6b4ff
commit
488d57750d
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue