fastlane/lib/fastlane/configuration_helper.rb in fastlane-2.86.0.beta.20180316050051 vs fastlane/lib/fastlane/configuration_helper.rb in fastlane-2.86.0.beta.20180317050040
- old
+ new
@@ -1,10 +1,10 @@
module Fastlane
class ConfigurationHelper
def self.parse(action, params)
first_element = (action.available_options || []).first
- if first_element and first_element.kind_of?(FastlaneCore::ConfigItem)
+ if first_element && first_element.kind_of?(FastlaneCore::ConfigItem)
# default use case
return FastlaneCore::Configuration.create(action.available_options, params)
elsif first_element
UI.error("Old configuration format for action '#{action}'") if Helper.test?
return params