Skip to content

Commit

Permalink
fix: deletefunc use
Browse files Browse the repository at this point in the history
Signed-off-by: Norman Meier <[email protected]>
  • Loading branch information
n0izn0iz committed Nov 22, 2024
1 parent 52d8d96 commit 9182eb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gnovm/pkg/gnomod/pkg.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func ListPkgs(root string) (PkgList, error) {
_ = err // ignore error to get valid imports while ignoring bad/partial files

// remove self and standard libraries from imports
_ = slices.DeleteFunc(imports, func(imp string) bool {
imports = slices.DeleteFunc(imports, func(imp string) bool {
return imp == gnoMod.Module.Mod.Path || gnolang.IsStdlib(imp)
})

Check warning on line 124 in gnovm/pkg/gnomod/pkg.go

View check run for this annotation

Codecov / codecov/patch

gnovm/pkg/gnomod/pkg.go#L123-L124

Added lines #L123 - L124 were not covered by tests

Expand Down

0 comments on commit 9182eb3

Please sign in to comment.