Skip to content
Permalink
Browse files
Issue #97 removing unused self reference
  • Loading branch information
Anis Kadri committed Jun 6, 2016
1 parent 58cf7df commit bc5f2500944a2578f4606fba8c7cab14525fff14
Showing 1 changed file with 4 additions and 5 deletions.
@@ -164,12 +164,11 @@ function defaultGroup(fileRef) {
}

function pbxFile(filepath, opt) {
var opt = opt || {},
self = this;
var opt = opt || {};

this.basename = path.basename(filepath);
this.lastKnownFileType = opt.lastKnownFileType || detectType(filepath);
this.group = detectGroup(self, opt);
this.group = detectGroup(this, opt);

// for custom frameworks
if (opt.customFramework == true) {
@@ -178,7 +177,7 @@ function pbxFile(filepath, opt) {
}

this.path = defaultPath(this, filepath).replace(/\\/g, '/');
this.fileEncoding = this.defaultEncoding = opt.defaultEncoding || defaultEncoding(self);
this.fileEncoding = this.defaultEncoding = opt.defaultEncoding || defaultEncoding(this);

// When referencing products / build output files
if (opt.explicitFileType) {
@@ -190,7 +189,7 @@ function pbxFile(filepath, opt) {
delete this.defaultEncoding;
}

this.sourceTree = opt.sourceTree || detectSourcetree(self);
this.sourceTree = opt.sourceTree || detectSourcetree(this);
this.includeInIndex = 0;

if (opt.weak && opt.weak === true)

0 comments on commit bc5f250

Please sign in to comment.