Skip to content

Commit 4bc9e07

Browse files
committed
hasFile(): Return file object on success instead of Boolean
1 parent e4d5ed4 commit 4bc9e07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/pbxProject.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -926,7 +926,7 @@ pbxProject.prototype.hasFile = function(filePath) {
926926
for (id in files) {
927927
file = files[id];
928928
if (file.path == filePath || file.path == ('"' + filePath + '"')) {
929-
return true;
929+
return file;
930930
}
931931
}
932932

0 commit comments

Comments
 (0)