Skip to content

Commit d53b68c

Browse files
Remove redundant call to #to_s
1 parent cd88550 commit d53b68c

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@ Lint/HashCompareByIdentity:
1111
Exclude:
1212
- 'lib/redis.rb'
1313

14-
# Offense count: 1
15-
# Cop supports --auto-correct.
16-
Lint/RedundantStringCoercion:
17-
Exclude:
18-
- 'examples/consistency.rb'
19-
2014
# Offense count: 2
2115
# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers.
2216
# SupportedStyles: snake_case, normalcase, non_integer

examples/consistency.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def initialize(redis)
5252
def genkey
5353
# Write more often to a small subset of keys
5454
ks = rand > 0.5 ? @keyspace : @working_set
55-
"#{@prefix}key_#{rand(ks).to_s}"
55+
"#{@prefix}key_#{rand(ks)}"
5656
end
5757

5858
def check_consistency(key, value)

0 commit comments

Comments
 (0)