File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ func LinkGlobals(
4949 globals := make ([]Variable , len (program .Globals ))
5050 indexedGlobals := activations .NewActivation [Variable ](memoryGauge , nil )
5151
52- var visitedLocations map [common.Location ]struct {}
52+ visitedLocations := map [common.Location ]struct {} {}
5353
5454 // NOTE: ensure both the context and the mapping are updated
5555
@@ -178,7 +178,7 @@ func linkImportedGlobal(
178178 if _ , ok := visitedLocations [importLocation ]; ! ok {
179179 // add the imported program's sema type cache to the context's sema type cache
180180 // TODO: Maybe this is excessive, balance size and performance
181- for typeID , semaType := range importedProgram .SemaTypeCache {
181+ for typeID , semaType := range importedProgram .SemaTypeCache { //nolint:maprange
182182 if _ , ok := context .semaTypeCache [typeID ]; ok {
183183 continue
184184 }
You can’t perform that action at this time.
0 commit comments