Skip to content

Commit

Permalink
clean up linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
CoderMiguel committed Jan 16, 2024
1 parent 89e9175 commit f8faef2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ gemspec
# Run all pre-commit hooks via Overcommit during CI runs
gem 'overcommit', '0.53.0'

# Pin redis-rb version since v5 introduced breaking changes
gem 'redis', '>= 5.0.0'
# Pin tool versions (which are executed by Overcommit) for CI builds
gem 'rubocop', '1.44.1'

gem 'simplecov', '~> 0.22.0'
gem 'simplecov-lcov', '~> 0.8.0'
gem 'redis', '>= 5.0.0'

# TODO: gems added for development, remove before merge
# gem 'pry'

2 changes: 1 addition & 1 deletion lib/mock_redis/utility_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def redis_gem_v5?
Redis::VERSION.to_i == 5
end

def size_after(obj, &blk)
def size_after(obj, &_blk)
size_before = obj.size
yield
(obj.size - size_before).abs
Expand Down
2 changes: 1 addition & 1 deletion spec/commands/sadd_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
before { @key = 'mock-redis-test:sadd' }

context 'sadd' do
context "adapts to redis-rd version 4 and 5 outputs" do
context 'adapts to redis-rd version 4 and 5 outputs' do
include MockRedis::UtilityMethods

let(:positive_response) { redis_gem_v5? ? 1 : true }
Expand Down
2 changes: 1 addition & 1 deletion spec/commands/srem_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
@redises.sadd(@key, 'ernie')
end

context "adapts to redis-rd version 4 and 5 outputs" do
context 'adapts to redis-rd version 4 and 5 outputs' do
include MockRedis::UtilityMethods

let(:positive_response) { redis_gem_v5? ? 1 : true }
Expand Down

0 comments on commit f8faef2

Please sign in to comment.