Skip to content

Commit

Permalink
Merge pull request #155 from kevincobain2000/feature/mod-bug
Browse files Browse the repository at this point in the history
unable to obtain mod version
  • Loading branch information
kevincobain2000 authored Nov 12, 2023
2 parents 4f13840 + 3a05718 commit f83b038
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 f83b038

Please sign in to comment.