Skip to content
This repository has been archived by the owner on May 27, 2020. It is now read-only.

Commit

Permalink
Fix false positive // update jar
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan1ve committed May 31, 2018
1 parent c936725 commit aeb51e6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified closure-inspections-plugin.jar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ protected boolean doConsumeElement(JSCallExpression callElement) {
namespace = namespace.substring(0, namespace.lastIndexOf("."));
} else {
String methodName = namespaceWithMethod.substring(offsetBeforeMethodOrConstant + 1);
if (WHITELISTED_METHODS.contains(methodName)) {
if (!namespaceWithMethod.startsWith("goog.") && WHITELISTED_METHODS.contains(methodName)) {
return false;
}
}
Expand Down

0 comments on commit aeb51e6

Please sign in to comment.