deliver/lib/deliver/submit_for_review.rb in fastlane-2.86.0.beta.20180316050051 vs deliver/lib/deliver/submit_for_review.rb in fastlane-2.86.0.beta.20180317050040
- old
+ new
@@ -31,10 +31,10 @@
def select_build(options)
app = options[:app]
v = app.edit_version
- if options[:build_number] and options[:build_number] != "latest"
+ if options[:build_number] && options[:build_number] != "latest"
UI.message("Selecting existing build-number: #{options[:build_number]}")
build = v.candidate_builds.detect { |a| a.build_version == options[:build_number] }
unless build
UI.user_error!("Build number: #{options[:build_number]} does not exist")
end