aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/os/linux
diff options
context:
space:
mode:
authorJack Nagel2013-06-13 11:57:13 -0500
committerJack Nagel2013-06-14 10:34:17 -0500
commitdd774b604fcf49a8bf787b13f79abc97a43507c8 (patch)
tree5a09a065dc412780dce66d8da3ca69f2a1e57269 /Library/Homebrew/os/linux
parent899fbb3f77c593a1afa4dd1b241592bd72b7ea38 (diff)
downloadhomebrew-dd774b604fcf49a8bf787b13f79abc97a43507c8.tar.bz2
Freeze optimization flags hash rather than duping it
Diffstat (limited to 'Library/Homebrew/os/linux')
-rw-r--r--Library/Homebrew/os/linux/hardware.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/os/linux/hardware.rb b/Library/Homebrew/os/linux/hardware.rb
index 433092c45..b323cbab5 100644
--- a/Library/Homebrew/os/linux/hardware.rb
+++ b/Library/Homebrew/os/linux/hardware.rb
@@ -1,6 +1,6 @@
module LinuxCPUs
- OPTIMIZATION_FLAGS = {}
- def optimization_flags; OPTIMIZATION_FLAGS.dup; end
+ OPTIMIZATION_FLAGS = {}.freeze
+ def optimization_flags; OPTIMIZATION_FLAGS; end
def type
@cpu_type ||= case `uname -m`