Skip to content

Commit

Permalink
use dup instead of clone for error case (#20662)
Browse files Browse the repository at this point in the history
  • Loading branch information
freddi-kit committed Nov 12, 2022
1 parent 2263403 commit 991ce9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastlane_core/lib/fastlane_core/itunes_transporter.rb
Expand Up @@ -873,7 +873,7 @@ def provider_ids

# Create .p8 file from api_key and provide api key info which contains .p8 file path
def api_key_with_p8_file_path(original_api_key)
api_key = original_api_key.clone
api_key = original_api_key.dup
api_key[:key_dir] = Dir.mktmpdir("deliver-")
# Specified p8 needs to be generated to call altool
File.open(File.join(api_key[:key_dir], "AuthKey_#{api_key[:key_id]}.p8"), "wb") do |p8|
Expand Down

0 comments on commit 991ce9b

Please sign in to comment.