Skip to content

Commit c331244

Browse files
FIxed isMuted property being inverted
1 parent 84c1916 commit c331244

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Shared/Sources/Shared/URLEntry.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ public struct URLEntry {
3434
guard let unmuteDate = unmuteDate else {
3535
return false
3636
}
37-
return unmuteDate < Date()
37+
// If the unmuteDate is in the future, we are still muted
38+
return unmuteDate > Date()
3839
}()
3940
}
4041
}

urlwatcher/Sources/urlwatcher/main.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ for i in 0..<config.count {
3636

3737
// If the entry is muted, we skip it
3838
if (entry.isMuted) {
39+
print("Entry is still muted. Skipping...")
3940
continue
4041
}
4142

0 commit comments

Comments
 (0)