Skip to content

Commit

Permalink
Fixed an incorrect warning that would show up with default settings
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitribouniol committed Dec 16, 2024
1 parent e8c4f64 commit 102258e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/WebPush/WebPushManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ public actor WebPushManager: Sendable {

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

Expand Down

0 comments on commit 102258e

Please sign in to comment.