Skip to content

Commit ae17d8b

Browse files
Fixed an incorrect warning that would show up with default settings
1 parent e8c4f64 commit ae17d8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/WebPush/WebPushManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ public actor WebPushManager: Sendable {
379379

380380
if expiration < Expiration.dropIfUndeliverable {
381381
logger.error("The message expiration must be greater than or equal to \(Expiration.dropIfUndeliverable) seconds.", metadata: ["expiration": "\(expiration)"])
382-
} else if expiration >= Expiration.recommendedMaximum {
382+
} else if expiration > Expiration.recommendedMaximum {
383383
logger.warning("The message expiration should be less than \(Expiration.recommendedMaximum) seconds.", metadata: ["expiration": "\(expiration)"])
384384
}
385385

0 commit comments

Comments
 (0)