Skip to content

Commit

Permalink
Remove useless list->tuple conversion as tuples are iterable
Browse files Browse the repository at this point in the history
  • Loading branch information
smelc committed Mar 23, 2020
1 parent a0a7299 commit 9caec1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions haskell/private/versions.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ def check_version(actual_version):
if (min_bazel <= actual) and (actual <= max_bazel):
return # All good

min_bazel_string = ".".join([str(x) for x in list(min_bazel)])
max_bazel_string = ".".join([str(x) for x in list(max_bazel)])
min_bazel_string = ".".join([str(x) for x in min_bazel])
max_bazel_string = ".".join([str(x) for x in max_bazel])

adjective = "old" if actual < min_bazel else "recent"

Expand Down

0 comments on commit 9caec1b

Please sign in to comment.