Skip to content

Commit

Permalink
Fix failing type checks
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Di Tommaso <[email protected]>
  • Loading branch information
pditommaso committed Sep 11, 2024
1 parent 7858b95 commit bd704be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/groovy/io/seqera/wave/WaveDefault.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ interface WaveDefault {
'application/vnd.docker.distribution.manifest.list.v2+json' ) )


final public static int[] HTTP_REDIRECT_CODES = List.of(301, 302, 303, 307, 308)
final public static List<Integer> HTTP_REDIRECT_CODES = List.of(301, 302, 303, 307, 308)

final public static List<Integer> HTTP_SERVER_ERRORS = List.of(500, 502, 503, 504)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class RedisRangeProvider implements RangeProvider {
if( remove ) {
final entries = conn.eval(SCRIPT, 1, key, min.toString(), max.toString(), '0', count.toString())
if( entries instanceof List )
result.addAll(entries)
result.addAll((List<String>) entries)
}
else {
List<Tuple> found = conn.zrangeByScoreWithScores(key, min, max, 0, count)
Expand Down

0 comments on commit bd704be

Please sign in to comment.