Skip to content

Commit

Permalink
Merge pull request #5519 from jonchang/fix-prefer-64-bit
Browse files Browse the repository at this point in the history
compat: correct MacOS.prefer_64_bit? deprecation
  • Loading branch information
jonchang authored Jan 10, 2019
2 parents b16e9c8 + 85b65e9 commit 241ee98
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Library/Homebrew/compat/os/mac.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
module OS
module Mac
module Compat
module_function

def prefer_64_bit?
odeprecated("MacOS.prefer_64_bit?")
Hardware::CPU.is_64_bit?
class << self
module Compat
def prefer_64_bit?
odeprecated("MacOS.prefer_64_bit?")
Hardware::CPU.is_64_bit?
end
end
end

prepend Compat
prepend Compat
end
end
end

0 comments on commit 241ee98

Please sign in to comment.