Skip to content

Commit

Permalink
match: Avoid mutating app_identifiers (#20125)
Browse files Browse the repository at this point in the history
  • Loading branch information
AliSoftware committed Mar 25, 2022
1 parent 668d976 commit acb7d84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions match/lib/match/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ def run(params)
app_identifiers = params[:app_identifier].to_s.split(/\s*,\s*/).uniq
end

# sometimes we get an array with arrays, this is a bug. To unblock people using match, I suggest we flatten!
# sometimes we get an array with arrays, this is a bug. To unblock people using match, I suggest we flatten
# then in the future address the root cause of https://github.com/fastlane/fastlane/issues/11324
app_identifiers.flatten!
app_identifiers = app_identifiers.flatten

# Verify the App ID (as we don't want 'match' to fail at a later point)
if spaceship
Expand Down

0 comments on commit acb7d84

Please sign in to comment.