lib/heirloom/cli/shared.rb in heirloom-0.3.0.rc1 vs lib/heirloom/cli/shared.rb in heirloom-0.3.0
- old
+ new
@@ -16,15 +16,12 @@
end
end
missing_opts.compact!
- if missing_opts.any?
- missing_opts.each {|missing_opt| logger.error missing_opt}
- end
+ missing_opts.each {|missing_opt| logger.error missing_opt}
- missing_opts.any? ? false : true
-
+ missing_opts.empty?
end
end
end
end