Skip to content

Commit 83a8721

Browse files
committed
Remove redundant &. since **options cannot be nil
1 parent 44cc2e7 commit 83a8721

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

activesupport/lib/active_support/messages/rotation_configuration.rb

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,12 @@ def initialize
1010
end
1111

1212
def rotate(kind, *args, **options)
13+
args << options unless options.empty?
1314
case kind
1415
when :signed
15-
if options&.any?
16-
@signed << (args << options)
17-
else
18-
@signed << args
19-
end
16+
@signed << args
2017
when :encrypted
21-
if options&.any?
22-
@encrypted << (args << options)
23-
else
24-
@encrypted << args
25-
end
18+
@encrypted << args
2619
end
2720
end
2821
end

0 commit comments

Comments
 (0)