Skip to content

Commit ba9c1f7

Browse files
committed
Simplify a bit rendering of hash arguments
No need to convert to symbol if we're displaying all keys in the same way. Small follow-up to #201.
1 parent 58601c0 commit ba9c1f7

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

app/helpers/mission_control/jobs/jobs_helper.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,8 @@ def as_renderable_hash(argument)
6767
elsif argument["_aj_serialized"]
6868
ActiveJob::Arguments.deserialize([ argument ]).first
6969
else
70-
to_symbols = argument.values_at("_aj_symbol_keys", "_aj_ruby2_keywords").compact.flatten
7170
argument.without("_aj_symbol_keys", "_aj_ruby2_keywords")
7271
.transform_values { |v| as_renderable_argument(v) }
73-
.transform_keys { |k| k.to_sym if k.in? to_symbols }
7472
.map { |k, v| "#{k}: #{v}" }
7573
.join(", ")
7674
.then { |s| "{#{s}}" }

0 commit comments

Comments
 (0)