Skip to content

Commit

Permalink
fix: extractWmic
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Mar 26, 2024
1 parent 80b70c1 commit cd188c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/ts/ps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export const parseProcessList = (output: string, query: TPsLookupQuery = {}) =>
export const extractWmic = (stdout: string): string => {
const _stdout = stdout.split(EOL)
// Find the line index for the titles
const beginRow = _stdout.findIndex((out) => out.indexOf('CommandLine') === 0)
const beginRow = _stdout.findIndex(out => out?.indexOf('CommandLine') === 0)

// get rid of the start (copyright) and the end (current pwd)
// eslint-disable-next-line unicorn/prefer-negative-index
Expand Down

0 comments on commit cd188c9

Please sign in to comment.