From 294412644e0f73959d28e82c8dfe65139f89b7de Mon Sep 17 00:00:00 2001 From: Adam Lickel Date: Fri, 30 Aug 2024 11:56:51 -0700 Subject: [PATCH] Removing some warnings --- FetchRequests/Sources/JSON.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/FetchRequests/Sources/JSON.swift b/FetchRequests/Sources/JSON.swift index e51fd0d..deccfc1 100644 --- a/FetchRequests/Sources/JSON.swift +++ b/FetchRequests/Sources/JSON.swift @@ -536,12 +536,12 @@ extension JSON: Decodable { // MARK: - NSNumber Helpers -private let nsBool: NSNumber = true as NSNumber -private let cfBool: CFBoolean = true as CFBoolean - private extension NSNumber { var isBool: Bool { - type(of: self) == type(of: nsBool) || type(of: self) == type(of: cfBool) + let nsBool: NSNumber = true as NSNumber + let cfBool: CFBoolean = true as CFBoolean + + return type(of: self) == type(of: nsBool) || type(of: self) == type(of: cfBool) } var isFloatingPoint: Bool {