Skip to content

Commit 7cfd917

Browse files
Fixed duplicated if condition that interprets no change as error
1 parent 39cf21a commit 7cfd917

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

urlwatcher/Sources/urlwatcher/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ for entry in config {
126126

127127
let tempDiff = "\(entryPath)/diff.temp"
128128
// If the website changed
129-
if let ncc = try screenshotNCC(oldImage, latestImage, diffFile: tempDiff), ncc < nccThreshold {
129+
if let ncc = try screenshotNCC(oldImage, latestImage, diffFile: tempDiff) {
130130
if ncc < nccThreshold {
131131
print("Possible change detected (NCC: \(ncc)). Confirming...")
132132

0 commit comments

Comments
 (0)