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 8997dda commit 7a61ea2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snapshot/lib/snapshot/setup.rb
Expand Up @@ -19,7 +19,7 @@ def self.create(path, is_swift_fastfile: false, print_instructions_on_failure: f

if File.exist?(snapfile_path)
if print_instructions_on_failure
print_instructions(snapshot_helper_filename: snapshot_helper_filename, snapfile_path: snapfile_path)
print_instructions(snapshot_helper_filename: snapshot_helper_filename)
return
else
UI.user_error!("Snapfile already exists at path '#{snapfile_path}'. Run 'fastlane snapshot' to generate screenshots.")
Expand All @@ -37,7 +37,7 @@ def self.create(path, is_swift_fastfile: false, print_instructions_on_failure: f
print_instructions(snapshot_helper_filename: snapshot_helper_filename, snapfile_path: snapfile_path)
end

def self.print_instructions(snapshot_helper_filename: nil, snapfile_path: nil)
def self.print_instructions(snapshot_helper_filename: nil)
puts("Open your Xcode project and make sure to do the following:".yellow)
puts("1) Add a new UI Test target to your project".yellow)
puts("2) Add the ./fastlane/#{snapshot_helper_filename} to your UI Test target".yellow)
Expand Down

0 comments on commit 7a61ea2

Please sign in to comment.