Skip to content

Commit

Permalink
Apply review
Browse files Browse the repository at this point in the history
Co-authored-by: Jeremy Daer <[email protected]>
  • Loading branch information
heka1024 and jeremy authored Mar 12, 2024
1 parent 628be4e commit 25ab41b
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions lib/kredis/info.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@

module Kredis::Info
def redis_version
redis_versions.first
end

def redis_versions
Array.wrap(Kredis.redis.info("server")).tap do |versions|
versions.map! { |v| v["redis_version"] }
versions.map! { |v| Gem::Version.new(v) }
end
Gem::Version.new Kredis.redis.info("server")["redis_version"]
end
end

0 comments on commit 25ab41b

Please sign in to comment.