Skip to content

Commit a52e727

Browse files
committed
Fuuuuck I am SO tired of ruby 2.7!
[git-p4: depot-paths = "//src/minitest/dev/": change = 14609]
1 parent 33259e4 commit a52e727

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/minitest.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,12 @@ def self.process_args args = [] # :nodoc:
189189
end
190190

191191
# omg wtf
192-
def opts.short_alias(from, to) = top.short[to] = top.short[from]
193-
def opts.long_alias(from, to) = top.long[to] = top.long[from]
192+
def opts.short_alias(from, to)
193+
top.short[to] = top.short[from]
194+
end
195+
def opts.long_alias(from, to)
196+
top.long[to] = top.long[from]
197+
end
194198

195199
# these will work but won't show up in --help output:
196200
opts.long_alias "name", "include"

0 commit comments

Comments
 (0)