Skip to content

Commit

Permalink
unable to obtain mod version
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincobain2000 committed Nov 12, 2023
1 parent 4f13840 commit 3a05718
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gobrew.go
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ func (gb *GoBrew) judgeVersion(version string) string {

if version == "mod" {
// get version by reading the mod file of Go
judgedVersion = gb.getModVersion()
return gb.getModVersion()
}
if version == "latest" || version == "dev-latest" {
groupedVersions := gb.ListRemoteVersions(false) // donot print
Expand Down

0 comments on commit 3a05718

Please sign in to comment.