Skip to content

Commit

Permalink
fix nogo shadowing
Browse files Browse the repository at this point in the history
  • Loading branch information
ellie-idb committed Dec 28, 2024
1 parent 8969300 commit f8f6dba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/tools/gopackagesdriver/flatpackage.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ func ResolveImports(pkg *packages.Package, resolve ResolvePkgFunc, overlays map[
if imp == "C" {
continue
}
if pkg := pkg.Imports[imp]; pkg != nil {
if _, ok := pkg.Imports[imp]; ok {
continue
}

Expand Down

0 comments on commit f8f6dba

Please sign in to comment.