Skip to content

Commit

Permalink
Remove redundant call to #to_s
Browse files Browse the repository at this point in the history
  • Loading branch information
wmontgomery-splunk committed Feb 7, 2024
1 parent cd88550 commit d53b68c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@ Lint/HashCompareByIdentity:
Exclude:
- 'lib/redis.rb'

# Offense count: 1
# Cop supports --auto-correct.
Lint/RedundantStringCoercion:
Exclude:
- 'examples/consistency.rb'

# Offense count: 2
# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers.
# SupportedStyles: snake_case, normalcase, non_integer
Expand Down
2 changes: 1 addition & 1 deletion examples/consistency.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def initialize(redis)
def genkey
# Write more often to a small subset of keys
ks = rand > 0.5 ? @keyspace : @working_set
"#{@prefix}key_#{rand(ks).to_s}"
"#{@prefix}key_#{rand(ks)}"
end

def check_consistency(key, value)
Expand Down

0 comments on commit d53b68c

Please sign in to comment.