fastlane/lib/fastlane/runner.rb in fastlane-2.86.0.beta.20180316050051 vs fastlane/lib/fastlane/runner.rb in fastlane-2.86.0.beta.20180317050040

- old
+ new

@@ -236,11 +236,11 @@ Actions.execute_action(action_name) do # arguments is an array by default, containing an hash with the actual parameters # Since we usually just need the passed hash, we'll just use the first object if there is only one if arguments.count == 0 arguments = ConfigurationHelper.parse(class_ref, {}) # no parameters => empty hash - elsif arguments.count == 1 and arguments.first.kind_of?(Hash) + elsif arguments.count == 1 && arguments.first.kind_of?(Hash) arguments = ConfigurationHelper.parse(class_ref, arguments.first) # Correct configuration passed elsif !class_ref.available_options # This action does not use the new action format # Just passing the arguments to this method else @@ -307,10 +307,10 @@ # @param lane [Lane] A lane object def add_lane(lane, override = false) lanes[lane.platform] ||= {} - if !override and lanes[lane.platform][lane.name] + if !override && lanes[lane.platform][lane.name] UI.user_error!("Lane '#{lane.name}' was defined multiple times!") end lanes[lane.platform][lane.name] = lane end