Skip to content

Commit f2c3a06

Browse files
committed
fix(pnpm): various strictness errors
1 parent 7828841 commit f2c3a06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/pnpm.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const searchBranches: Fig.Generator = {
2121
return output.split("\n").map((elm) => {
2222
let name = elm.trim();
2323
const parts = elm.match(/\S+/g);
24-
if (parts.length > 1) {
24+
if (parts && parts.length > 1) {
2525
if (parts[0] == "*") {
2626
// Current branch.
2727
return {
@@ -991,7 +991,7 @@ const completionSpec: Fig.Spec = {
991991
script: string[];
992992
};
993993

994-
const packages = postProcess(
994+
const packages = postProcess?.(
995995
(
996996
await executeShellCommand({
997997
command: script[0],

0 commit comments

Comments
 (0)