Skip to content

Commit fb607e7

Browse files
2 parents 090014c + e9282dc commit fb607e7

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

lib/code/object/global.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,7 @@ def call(**args)
178178
end
179179
when "Url"
180180
sig(args) { Object.repeat }
181-
if code_arguments.any?
182-
Url.new(*code_arguments.raw)
183-
else
184-
Class.new(Url)
185-
end
181+
code_arguments.any? ? Url.new(*code_arguments.raw) : Class.new(Url)
186182
else
187183
code_context = code_context.code_lookup!(code_operator)
188184
code_result = code_context.code_fetch(code_operator)

0 commit comments

Comments
 (0)