Skip to content

Commit cc0ac78

Browse files
committed
style: User path.dirname instead of string for srcrootpath
1 parent 9b8b05d commit cc0ac78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/pbxProject.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ pbxProject.prototype.addPbxGroup = function (filePathsArray, name, path, sourceT
345345
continue;
346346
}
347347

348-
var srcRootPath = $path.join(this.filepath, "../..");
348+
var srcRootPath = $path.dirname($path.dirname(this.filepath));
349349
var file = new pbxFile($path.relative(srcRootPath, filePath));
350350
if (fs.lstatSync(filePath).isDirectory()) {
351351
file.uuid = this.generateUuid();

0 commit comments

Comments
 (0)