Skip to content

Commit

Permalink
fix: rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
v-vila committed Mar 8, 2024
1 parent f58d40c commit 6232e80
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/fastlane/plugin/common/actions/android_match_action.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ def self.run(params)
keystore = params[:keystore]

if type == 'debug'
keystore ||= ENV['ANDROID_MATCH_DEBUG_KEYSTORE']
keystore ||= ENV.fetch('ANDROID_MATCH_DEBUG_KEYSTORE', nil)
elsif type == 'release'
keystore ||= ENV['ANDROID_MATCH_RELEASE_KEYSTORE']
keystore ||= ENV.fetch('ANDROID_MATCH_RELEASE_KEYSTORE', nil)
else
raise "Invalid type '#{type}'. Valid values: debug|release."
end
Expand All @@ -18,8 +18,8 @@ def self.run(params)
raise "The keystore '#{keystore}' already exists. If you want to redownload it, please run with the --force flag." unless params[:force] || !File.exist?(keystore)

temp_dir = Dir.mktmpdir
git_url = ENV['ANDROID_MATCH_URL']
git_branch = ENV['ANDROID_MATCH_BRANCH']
git_url = ENV.fetch('ANDROID_MATCH_URL', nil)
git_branch = ENV.fetch('ANDROID_MATCH_BRANCH', nil)

sh("git clone --branch #{git_branch} #{git_url} #{temp_dir}")
FileUtils.cp("#{temp_dir}/#{keystore}", '.')
Expand Down Expand Up @@ -56,4 +56,4 @@ def self.is_supported?(platform)
end
end
end
end
end

0 comments on commit 6232e80

Please sign in to comment.