lib/cliutils/configuration.rb in cliutils-2.1.4 vs lib/cliutils/configuration.rb in cliutils-2.2.0
- old
+ new
@@ -25,10 +25,10 @@
# Singleton method to return (or initialize, if needed)
# a Configurator.
# @return [Configurator]
def configuration
- if !@@configuration.nil?
+ if @@configuration
@@configuration
else
fail 'Attempted to access `configuration` before ' \
'executing `load_configuration`'
end