Skip to content

Commit

Permalink
Removing some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
lickel committed Aug 30, 2024
1 parent 9b2b797 commit 2944126
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions FetchRequests/Sources/JSON.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 2944126

Please sign in to comment.