Skip to content

Commit 52e5cd2

Browse files
committed
Remove bad nil check
1 parent 0ead3e2 commit 52e5cd2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

internal/checker/checker.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15705,10 +15705,8 @@ func (c *Checker) getExportsOfModuleWorker(moduleSymbol *ast.Symbol) (exports as
1570515705
return symbols
1570615706
}
1570715707
var originalModule *ast.Symbol
15708-
if moduleSymbol != nil {
15709-
if c.resolveSymbolEx(moduleSymbol.Exports[ast.InternalSymbolNameExportEquals], false /*dontResolveAlias*/) != nil {
15710-
originalModule = moduleSymbol
15711-
}
15708+
if c.resolveSymbolEx(moduleSymbol.Exports[ast.InternalSymbolNameExportEquals], false /*dontResolveAlias*/) != nil {
15709+
originalModule = moduleSymbol
1571215710
}
1571315711
// A module defined by an 'export=' consists of one export that needs to be resolved
1571415712
moduleSymbol = c.resolveExternalModuleSymbol(moduleSymbol, false /*dontResolveAlias*/)

0 commit comments

Comments
 (0)