Skip to content

Commit 173c323

Browse files
committed
chore: fix comments
1 parent c577f89 commit 173c323

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/pbxProject.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1703,13 +1703,14 @@ pbxProject.prototype.removeTarget = function(target, targetKey) {
17031703
} else if (buildPhase.comment === buildPhaseNameForIsa("PBXFrameworksBuildPhase")) {
17041704
section = this.hash.project.objects["PBXFrameworksBuildPhase"];
17051705
var frameworkFiles = section[sectionUuid].files;
1706-
for (let q = 0; q < frameworkFiles.length; q++) {
1707-
var currentBuildFileUuid = frameworkFiles[q].value;
1706+
for (let currentBuildFile of frameworkFiles) {
1707+
var currentBuildFileUuid = currentBuildFile.value;
17081708
var fileRef = pbxBuildFileSection[currentBuildFileUuid].fileRef;
17091709
var stillReferenced = false;
17101710
for (var buildFileUuid in nonComments(pbxBuildFileSection)) {
17111711
if(pbxBuildFileSection[buildFileUuid].fileRef === fileRef && buildFileUuid !== currentBuildFileUuid){
17121712
stillReferenced = true;
1713+
break;
17131714
}
17141715
}
17151716

0 commit comments

Comments
 (0)