Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kutluhanmetin committed Sep 4, 2023
1 parent 939d231 commit ddb204f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion internal/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,15 @@ func LatestReleaseVersion() (string, error) {
}
var release map[string]any
for _, d := range data {
if d["prerelease"].(bool) == false {
prs, ok := d["prerelease"]
if !ok {
continue
}
pr, ok := prs.(bool)
if !ok {
continue
}
if !pr {
release = d
break
}
Expand Down

0 comments on commit ddb204f

Please sign in to comment.