Skip to content

Commit

Permalink
Remove unused parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
lacostej committed Dec 13, 2023
1 parent f9ea063 commit c3a2343
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions fastlane/lib/fastlane/swift_lane_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def self.cruise_swift_lane_in_thread(lane, parameters = nil, swift_server_port)
end
end

def self.swap_paths_in_target(target: nil, file_refs_to_swap: nil, expected_path_to_replacement_path_tuples: nil)
def self.swap_paths_in_target(file_refs_to_swap: nil, expected_path_to_replacement_path_tuples: nil)
made_project_updates = false
file_refs_to_swap.each do |file_ref|
expected_path_to_replacement_path_tuples.each do |preinstalled_config_relative_path, user_config_relative_path|
Expand Down Expand Up @@ -197,14 +197,12 @@ def self.link_user_configs_to_project(updated_message: nil)

# Swap in all new user supplied configs into the project
project_modified = swap_paths_in_target(
target: runner_target,
file_refs_to_swap: target_file_refs,
expected_path_to_replacement_path_tuples: new_user_tool_file_paths
)

# Swap out any configs the user has removed, inserting fastlane defaults
project_modified = swap_paths_in_target(
target: runner_target,
file_refs_to_swap: target_file_refs,
expected_path_to_replacement_path_tuples: user_tool_files_possibly_removed
) || project_modified
Expand Down

0 comments on commit c3a2343

Please sign in to comment.