From a4f19f44dc5618144828be23ca3fedaf0b80647a Mon Sep 17 00:00:00 2001 From: Chall Fry Date: Mon, 13 Jan 2025 18:36:19 -0800 Subject: [PATCH] Fixes #360. (#364) Failable initializers are weird. Co-authored-by: Chall Fry --- Sources/swiftarr/Extensions/Foundation+Extensions.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Sources/swiftarr/Extensions/Foundation+Extensions.swift b/Sources/swiftarr/Extensions/Foundation+Extensions.swift index 01a4789f8..4c45762e5 100644 --- a/Sources/swiftarr/Extensions/Foundation+Extensions.swift +++ b/Sources/swiftarr/Extensions/Foundation+Extensions.swift @@ -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 {