Skip to content
This repository was archived by the owner on Sep 26, 2025. It is now read-only.

Commit fa603fe

Browse files
authored
fix: out of range error during searching for new versions (#161)
1 parent ccc5e93 commit fa603fe

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

nhost/nhost.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,11 @@ func SearchRelease(releases []Release, version string) (Release, error) {
248248
}
249249
}
250250
}
251+
252+
if len(releases) == 0 {
253+
return response, errors.New("no release found")
254+
}
255+
251256
return releases[0], nil
252257
}
253258

0 commit comments

Comments
 (0)