Skip to content

Commit

Permalink
Fixes #360. (#364)
Browse files Browse the repository at this point in the history
Failable initializers are weird.

Co-authored-by: Chall Fry <[email protected]>
  • Loading branch information
challfry and challf authored Jan 14, 2025
1 parent 694824b commit a4f19f4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/swiftarr/Extensions/Foundation+Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ extension Swift.Bool: RediStack.RESPValueConvertible {
if let intValue = value.int {
self = intValue != 0
}
return nil
else {
return nil
}
}

public func convertedToRESPValue() -> RESPValue {
Expand Down

0 comments on commit a4f19f4

Please sign in to comment.