Skip to content

Commit 91eb8ae

Browse files
concavelenzcopybara-github
authored andcommitted
Automated Code Change
PiperOrigin-RevId: 623877696
1 parent 4ab8450 commit 91eb8ae

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/com/google/javascript/jscomp/CheckMissingRequires.java

+3-6
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616

1717
package com.google.javascript.jscomp;
1818

19-
import static com.google.common.base.Preconditions.checkNotNull;
20-
2119
import com.google.common.collect.ImmutableMap;
2220
import com.google.common.collect.Sets;
2321
import com.google.javascript.jscomp.NodeTraversal.AbstractModuleCallback;
@@ -84,7 +82,7 @@ public boolean shouldTraverse(
8482
}
8583

8684
// Traverse nodes in preorder to collect `@template` parameter names before their use.
87-
visitNode(t, n, checkNotNull(currentModule));
85+
visitNode(t, n, currentModule);
8886
return true;
8987
}
9088

@@ -102,14 +100,13 @@ private void visitNode(NodeTraversal t, Node n, ModuleMetadata currentModule) {
102100
if (info != null) {
103101
visitJsDocInfo(t, currentModule, info);
104102
}
105-
if (n.isQualifiedName() && !n.getParent().isGetProp()) {
103+
if (!n.getParent().isGetProp() && n.isQualifiedName()) {
106104
QualifiedName qualifiedName = n.getQualifiedNameObject();
107105
String root = qualifiedName.getRoot();
108106
if (root.equals("this") || root.equals("super")) {
109107
return;
110108
}
111-
visitQualifiedName(
112-
t, n, currentModule, n.getQualifiedNameObject(), /* isStrongReference= */ true);
109+
visitQualifiedName(t, n, currentModule, qualifiedName, /* isStrongReference= */ true);
113110
}
114111
}
115112

0 commit comments

Comments
 (0)