Skip to content

Commit

Permalink
fix: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yibn2008 committed Dec 28, 2024
1 parent 70c44ed commit 9fff3c1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/find.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ const findBy = {
},
pid (pid, config) {
return findProcess({
pid: pid,
pid,
config
})
},
name (name, config) {
return findProcess({
name: name,
name,
config,
skipSelf: true
})
Expand Down
4 changes: 4 additions & 0 deletions lib/find_pid.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ const finders = {
if (matches && matches[1] === String(port)) {
return true
}
return false
})

if (found && found[2].length) {
Expand Down Expand Up @@ -82,6 +83,7 @@ const finders = {
if (matches && matches[1] === String(port)) {
return true
}
return false
})

if (columns && columns[1]) {
Expand Down Expand Up @@ -118,6 +120,7 @@ const finders = {
if (matches && matches[1] === String(port)) {
return true
}
return false
})

if (columns && columns[1].length && parseInt(columns[1], 10) > 0) {
Expand Down Expand Up @@ -154,6 +157,7 @@ const finders = {
if (matches && matches[1] === String(port)) {
return true
}
return false
})

if (columns && columns[1]) {
Expand Down
2 changes: 1 addition & 1 deletion lib/find_process.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const finders = {
uid: parseInt(column[2], 10),
gid: parseInt(column[3], 10),
name: fetchName(bin),
bin: bin,
bin,
cmd: column[4]
}
})
Expand Down

0 comments on commit 9fff3c1

Please sign in to comment.