Skip to content

Commit c978d61

Browse files
author
Mihail Slavchev
committed
replate filter+length with any
1 parent a1da6ce commit c978d61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/services/android-project-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ class AndroidProjectService implements IPlatformProjectService {
221221

222222
var relLibDir = path.relative(projDir, libraryPath).split("\\").join("/");
223223

224-
var libRefExists = _.filter(refs, r => path.normalize(r.path) == path.normalize(relLibDir)).length > 0;
224+
var libRefExists = _.any(refs, r => path.normalize(r.path) === path.normalize(relLibDir));
225225

226226
if (!libRefExists) {
227227
var projRef = util.format("\nandroid.library.reference.%d=%s", maxIdx + 1, relLibDir);

0 commit comments

Comments
 (0)