Skip to content

Commit 9f60cf4

Browse files
committed
fix: fix review comments
1 parent 3731ca3 commit 9f60cf4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/provisioning.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function detect(options, callback) {
8383
distribution: 0
8484
},
8585

86-
ppRegExp = /.*\.(mobileprovision|provisionprofile)$/;
86+
ppRegExp = /.*\.(mobileprovision|provisionprofile)$/;
8787

8888

8989
if (options.watch) {
@@ -141,7 +141,7 @@ function detect(options, callback) {
141141
function detectIssues() {
142142
results.issues = [];
143143

144-
if (results.provisioning.development.length >0 && !valid.development) {
144+
if (results.provisioning.development.length > 0 && !valid.development) {
145145
results.issues.push({
146146
id: 'IOS_NO_VALID_DEVELOPMENT_PROVISIONING_PROFILES',
147147
type: 'warning',
@@ -368,8 +368,8 @@ function unwatch(profileDir) {
368368
var profileDirs = getExistingProvisioningProfileDirectories(profileDir);
369369

370370
for (const profileDir of profileDirs) {
371-
if (!watchers[profileDir]) return;
372-
371+
if (!watchers[profileDir]) continue;
372+
373373
if (--watchers[profileDir].count <= 0) {
374374
watchers[profileDir].handle.close();
375375
delete watchers[profileDir];

0 commit comments

Comments
 (0)