Skip to content

Commit 0d04099

Browse files
authored
fix(kill): possible null exception (#2576)
1 parent c7f0008 commit 0d04099

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/kill.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const completionSpec: Fig.Spec = {
4040
// Bash's `kill` builtin has different output to /bin/kill
4141
script: ["env", "kill", "-l"],
4242
postProcess: (out) =>
43-
out.match(/\w+/g).map((name) => ({
43+
out.match(/\w+/g)?.map((name) => ({
4444
name,
4545
description: `Send ${name} instead of TERM`,
4646
icon: "fig://icon?type=string",

0 commit comments

Comments
 (0)