Skip to content

Commit 2a7ca5b

Browse files
pftgclaude
andcommitted
style: use unlink consistently, remove unnecessary comment
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent ae9b76d commit 2a7ca5b

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

lib/capybara_screenshot_diff/snap.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def cleanup_diff_artifacts!
6060
path.sub_ext(".diff.#{format}"),
6161
path.sub_ext(".heatmap.diff.#{format}"),
6262
base_path.sub_ext(".diff.#{format}")
63-
].each { |f| f.delete if f.exist? }
63+
].each { |f| f.unlink if f.exist? }
6464
end
6565
end
6666
end

test/unit/snap_manager_test.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ class SnapManagerTest < ActiveSupport::TestCase
6767
@manager.provision_snap_with(snap, source)
6868
@manager.provision_snap_with(snap, source, version: :base)
6969

70-
# Simulate reporter artifacts
7170
diff_path = snap.path.sub_ext(".diff.png")
7271
base_diff_path = snap.path.sub_ext(".base.diff.png")
7372
heatmap_path = snap.path.sub_ext(".heatmap.diff.png")

0 commit comments

Comments
 (0)