Skip to content

Commit bc5f250

Browse files
author
Anis Kadri
committed
Issue apache#97 removing unused self reference
1 parent 58cf7df commit bc5f250

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lib/pbxFile.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,11 @@ function defaultGroup(fileRef) {
164164
}
165165

166166
function pbxFile(filepath, opt) {
167-
var opt = opt || {},
168-
self = this;
167+
var opt = opt || {};
169168

170169
this.basename = path.basename(filepath);
171170
this.lastKnownFileType = opt.lastKnownFileType || detectType(filepath);
172-
this.group = detectGroup(self, opt);
171+
this.group = detectGroup(this, opt);
173172

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

180179
this.path = defaultPath(this, filepath).replace(/\\/g, '/');
181-
this.fileEncoding = this.defaultEncoding = opt.defaultEncoding || defaultEncoding(self);
180+
this.fileEncoding = this.defaultEncoding = opt.defaultEncoding || defaultEncoding(this);
182181

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

193-
this.sourceTree = opt.sourceTree || detectSourcetree(self);
192+
this.sourceTree = opt.sourceTree || detectSourcetree(this);
194193
this.includeInIndex = 0;
195194

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

0 commit comments

Comments
 (0)