Skip to content

Commit cb49e6c

Browse files
author
Christian Weichel
committed
[vet] Fix checkGolangHasBuildFlags's config unmarshalling
1 parent 6bea0e4 commit cb49e6c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/vet/golang.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func checkGolangHasGomod(pkg *leeway.Package) ([]Finding, error) {
5050
}
5151

5252
func checkGolangHasBuildFlags(pkg *leeway.Package) ([]Finding, error) {
53-
goCfg, ok := pkg.Config.(*leeway.GoPkgConfig)
53+
goCfg, ok := pkg.Config.(leeway.GoPkgConfig)
5454
if !ok {
5555
return nil, fmt.Errorf("Go package does not have go package config")
5656
}

0 commit comments

Comments
 (0)