From 25d88d0a03f6ba66874c9692a1c531c319cbcfd2 Mon Sep 17 00:00:00 2001 From: Kazuaki Matsuo Date: Fri, 30 Aug 2024 18:54:01 -0700 Subject: [PATCH] Update simctl.js --- lib/simctl.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/simctl.js b/lib/simctl.js index 5a2460a..5339885 100644 --- a/lib/simctl.js +++ b/lib/simctl.js @@ -200,11 +200,7 @@ class Simctl { encoding, }; if (!asynchronous) { - if (timeout) { - execOpts.timeout = timeout; - } else { - execOpts.timeout = this.execTimeout; - } + execOpts.timeout = timeout || this.execTimeout; } const xcrun = await this.requireXcrun(); try {