Skip to content

Commit ba682b9

Browse files
authored
fix: ensure opts is defined before checking skipError (#131)
1 parent 8f9c713 commit ba682b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/simctl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ export class Simctl implements ISimctl {
168168
const { canExecuteXcrun, xcodeToolsError } =
169169
this.verifyXcodeCommandLineToolsAreInstalled();
170170
if (!canExecuteXcrun) {
171-
if (opts.skipError) {
171+
if (opts && opts.skipError) {
172172
return null;
173173
} else {
174174
throw xcodeToolsError;

0 commit comments

Comments
 (0)