Skip to content

Commit 742a6d9

Browse files
committed
Fix accidental variable shadowing
1 parent 4de4f35 commit 742a6d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ func tryReadGoDirective(depMode DependencyInstallerMode) (string, bool) {
281281
if matches != nil {
282282
found = true
283283
if len(matches) > 1 {
284-
version := string(matches[1])
284+
version = string(matches[1])
285285
semverVersion := "v" + version
286286
if semver.Compare(semverVersion, getEnvGoSemVer()) >= 0 {
287287
diagnostics.EmitNewerGoVersionNeeded()

0 commit comments

Comments
 (0)