Skip to content

Commit 670419b

Browse files
lauraharkercopybara-github
authored andcommitted
Remove obsolete special case in CheckMissingRequires
PiperOrigin-RevId: 731752990
1 parent 5ac4a6e commit 670419b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

+2-4
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,7 @@ private void visitMaybeDeclaration(NodeTraversal t, Node n, ModuleMetadata curre
323323
return;
324324
}
325325

326-
// TODO: validate that this is the correct thing to do for wiz
327-
if (require == null || require.namespace().equals("wiz")) {
326+
if (require == null) {
328327
return;
329328
}
330329

@@ -443,8 +442,7 @@ private void checkMissingRequireThroughShortName(
443442
}
444443

445444
NodeUtil.GoogRequire require = NodeUtil.getGoogRequireInfo(localVar);
446-
// TODO: validate that this is the correct thing to do
447-
if (require == null || require.namespace().equals("wiz")) {
445+
if (require == null) {
448446
// It is a local name, not an import.
449447
// NOTE: this *could be a local alias* of an imported name
450448
// but at some point the only real fix is to not use `goog.provide`

0 commit comments

Comments
 (0)