Skip to content

Commit fb1dcea

Browse files
committed
Remove extraneous case condition
In commit 72300f9 the code for the `String` condition was simplified, and it's now the same as the code for the `*PERMITTED_TYPES` condition, and `String` is one of the `PERMITTED_TYPES` so we can just eliminate this condition and let `*PERMITTED_TYPES` cover it.
1 parent 2d069be commit fb1dcea

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

activejob/lib/active_job/arguments.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,6 @@ def serialize_argument(argument)
110110

111111
def deserialize_argument(argument)
112112
case argument
113-
when String
114-
argument
115113
when *PERMITTED_TYPES
116114
argument
117115
when BigDecimal # BigDecimal may have been legacy serialized; Remove in 7.2

0 commit comments

Comments
 (0)