Skip to content

Commit 3f805d3

Browse files
committed
Remove unused param from function
1 parent 137b2c9 commit 3f805d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

go/extractor/cli/go-autobuilder/go-autobuilder.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ func (m ModMode) argsForGoVersion(version string) []string {
203203
}
204204

205205
// addVersionToMod add a go version directive, e.g. `go 1.14` to a `go.mod` file.
206-
func addVersionToMod(goMod []byte, version string) bool {
206+
func addVersionToMod(version string) bool {
207207
cmd := exec.Command("go", "mod", "edit", "-go="+version)
208208
return util.RunCmd(cmd)
209209
}
@@ -294,7 +294,7 @@ func main() {
294294
} else if explicitRe := regexp.MustCompile("(?m)^## explicit$"); !explicitRe.Match(modulesTxt) {
295295
// and the modules.txt does not contain an explicit annotation
296296
log.Println("Adding a version directive to the go.mod file as the modules.txt does not have explicit annotations")
297-
if !addVersionToMod(goMod, "1.13") {
297+
if !addVersionToMod("1.13") {
298298
log.Println("Failed to add a version to the go.mod file to fix explicitly required package bug; not using vendored dependencies")
299299
modMode = ModMod
300300
}

0 commit comments

Comments
 (0)