fastlane/lib/fastlane/swift_fastlane_function.rb in fastlane-2.184.1 vs fastlane/lib/fastlane/swift_fastlane_function.rb in fastlane-2.185.0

- old
+ new

@@ -323,10 +323,11 @@ args = build_argument_list implm = "#{args.group_by { |h| h[:arg] }.keys.join("\n")}\n" 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 implm += "let command = RubyCommand(commandID: \"\", methodName: \"#{@function_name}\", className: nil, args: args)\n"