Skip to content

Commit

Permalink
fix: fix review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
hansemannn committed Sep 30, 2024
1 parent 3731ca3 commit 9f60cf4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/provisioning.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function detect(options, callback) {
distribution: 0
},

ppRegExp = /.*\.(mobileprovision|provisionprofile)$/;
ppRegExp = /.*\.(mobileprovision|provisionprofile)$/;


if (options.watch) {
Expand Down Expand Up @@ -141,7 +141,7 @@ function detect(options, callback) {
function detectIssues() {
results.issues = [];

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

for (const profileDir of profileDirs) {
if (!watchers[profileDir]) return;
if (!watchers[profileDir]) continue;

if (--watchers[profileDir].count <= 0) {
watchers[profileDir].handle.close();
delete watchers[profileDir];
Expand Down

0 comments on commit 9f60cf4

Please sign in to comment.