Use ||= instead of unless
This commit is contained in:
parent
e73f869d84
commit
9427704176
@ -457,7 +457,7 @@ class << ENV
|
|||||||
if self['FC']
|
if self['FC']
|
||||||
ohai "Building with an alternative Fortran compiler"
|
ohai "Building with an alternative Fortran compiler"
|
||||||
puts "This is unsupported."
|
puts "This is unsupported."
|
||||||
self['F77'] = self['FC'] unless self['F77']
|
self['F77'] ||= self['FC']
|
||||||
|
|
||||||
if ARGV.include? '--default-fortran-flags'
|
if ARGV.include? '--default-fortran-flags'
|
||||||
flags_to_set = []
|
flags_to_set = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user