From 9427704176f3c877484fa3d66b2b272455b4225f Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 13 Jun 2013 19:03:31 -0500 Subject: Use ||= instead of unless --- Library/Homebrew/extend/ENV.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Homebrew/extend/ENV.rb b/Library/Homebrew/extend/ENV.rb index 5d20db777..4323b829f 100644 --- a/Library/Homebrew/extend/ENV.rb +++ b/Library/Homebrew/extend/ENV.rb @@ -457,7 +457,7 @@ class << ENV if self['FC'] ohai "Building with an alternative Fortran compiler" puts "This is unsupported." - self['F77'] = self['FC'] unless self['F77'] + self['F77'] ||= self['FC'] if ARGV.include? '--default-fortran-flags' flags_to_set = [] -- cgit v1.2.3