Skip to content

Commit

Permalink
Fix Style/ParenthesesAroundCondition, Style/AndOr and Style/Not
Browse files Browse the repository at this point in the history
Fixes:
* Style/ParenthesesAroundCondition: Don't use parentheses around the condition of an unless.
* Style/AndOr: Use && instead of and.
* Style/Not: Use ! instead of not.
  • Loading branch information
bartoszkosiorek committed May 30, 2023
1 parent 136b313 commit 945d12c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastlane/lib/assets/custom_action_template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def self.available_options
# a short description of this parameter
description: 'API Token for [[NAME_CLASS]]',
verify_block: proc do |value|
unless (value and not value.empty?)
unless value && !value.empty?
UI.user_error!("No API token for [[NAME_CLASS]] given, pass using `api_token: 'token'`")
# UI.user_error!("Couldn't find file at path '#{value}'") unless File.exist?(value)
end
Expand Down

0 comments on commit 945d12c

Please sign in to comment.