Skip to content

Commit

Permalink
[Fastlane.Swift] Fix complexity limits introduced in Swift 5.4 (#18774)
Browse files Browse the repository at this point in the history
  • Loading branch information
minuscorp committed Jun 3, 2021
1 parent adc0af3 commit 27dfa59
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fastlane/lib/fastlane/swift_fastlane_function.rb
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,8 @@ def implementation
if args.empty?
implm += "let args: [RubyCommand.Argument] = []\n"
else
implm += "let args = [#{args.group_by { |h| h[:name] }.keys.join(",\n")}]\n"
implm += "let array: [RubyCommand.Argument?] = [#{args.group_by { |h| h[:name] }.keys.join(",\n")}]\n"
implm += "let args: [RubyCommand.Argument] = array\n"
implm += ".filter { $0?.value != nil }\n"
implm += ".compactMap { $0 }\n"
end
Expand Down

0 comments on commit 27dfa59

Please sign in to comment.