commit | 4bc9e073816524098ae160ccc4c666771ba003ae | [log] [tgz] |
---|---|---|
author | Sidney Bofah <sidney.bofah@googlemail.com> | Thu Jul 16 17:07:25 2015 +0200 |
committer | Sidney Bofah <sidney.bofah@googlemail.com> | Thu Jul 16 17:07:25 2015 +0200 |
tree | 09ab943da91332b9aa7d2738c66bdcdfd8f673d8 | |
parent | e4d5ed4796d43eb163dc1bf71fc74ea4eafcce2a [diff] |
hasFile(): Return file object on success instead of Boolean
diff --git a/lib/pbxProject.js b/lib/pbxProject.js index 532a27e..7ca502b 100644 --- a/lib/pbxProject.js +++ b/lib/pbxProject.js
@@ -926,7 +926,7 @@ for (id in files) { file = files[id]; if (file.path == filePath || file.path == ('"' + filePath + '"')) { - return true; + return file; } }