Skip to content

Commit db18162

Browse files
author
Mihail Slavchev
committed
remove lexical closure
1 parent 09b76ea commit db18162

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/services/android-project-service.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,14 +176,13 @@ class AndroidProjectService implements IPlatformProjectService {
176176
}
177177

178178
var lines = fs.readFileSync(projProp, { encoding: "utf-8" }).split(os.EOL);
179-
var thiz = this;
180179

181180
lines.forEach((elem, idx, arr) => {
182181
var match = elem.match(/android\.library\.reference\.(\d+)=(.*)/);
183182
if (match) {
184183
var libRef: ILibRef = { idx: parseInt(match[1]), path: match[2].trim() };
185-
libRef.adjustedPath = thiz.$fs.isRelativePath(libRef.path) ? path.join(projDir, libRef.path) : libRef.path;
186-
thiz.parseProjectProperties(libRef.adjustedPath, destDir);
184+
libRef.adjustedPath = this.$fs.isRelativePath(libRef.path) ? path.join(projDir, libRef.path) : libRef.path;
185+
this.parseProjectProperties(libRef.adjustedPath, destDir);
187186
}
188187
});
189188

0 commit comments

Comments
 (0)