fastlane/lib/fastlane/actions/badge.rb in fastlane-2.86.0.beta.20180316050051 vs fastlane/lib/fastlane/actions/badge.rb in fastlane-2.86.0.beta.20180317050040
- old
+ new
@@ -72,10 +72,10 @@
FastlaneCore::ConfigItem.new(key: :custom,
env_name: "FL_BADGE_CUSTOM",
description: "Add your custom overlay/badge image",
optional: true,
verify_block: proc do |value|
- UI.user_error!("custom should be a valid file path") unless value and File.exist?(value)
+ UI.user_error!("custom should be a valid file path") unless value && File.exist?(value)
end),
FastlaneCore::ConfigItem.new(key: :no_badge,
env_name: "FL_BADGE_NO_BADGE",
description: "Hides the beta badge",
optional: true,