compat/fails_with_llvm: cleanup style.
This commit is contained in:
parent
369fc93479
commit
bf13eb9b59
@ -1,11 +1,9 @@
|
||||
class Formula
|
||||
def fails_with_llvm(_msg = nil, _data = nil)
|
||||
opoo "Calling fails_with_llvm in the install method is deprecated"
|
||||
puts "Use the fails_with DSL instead"
|
||||
odeprecated "Formula#fails_with_llvm in install"
|
||||
end
|
||||
|
||||
def self.fails_with_llvm(msg = nil, data = {})
|
||||
data = msg if Hash === msg
|
||||
fails_with(:llvm) { build(data.delete(:build).to_i) }
|
||||
def self.fails_with_llvm(_msg = nil, _data = {})
|
||||
odeprecated "Formula.fails_with_llvm"
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user