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 909926f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Please check the [releases](https://github.com/mochidev/swift-webpush/releases)
dependencies: [
.package(
url: "https://github.com/mochidev/swift-webPush.git",
.upToNextMinor(from: "0.2.0")
.upToNextMinor(from: "0.2.1")
),
],
...
Expand Down
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 909926f

Please sign in to comment.