Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

Commit

Permalink
Fixed formatting. Remove redundant type declaration.
Browse files Browse the repository at this point in the history
  • Loading branch information
noobs2ninjas committed Jul 27, 2019
1 parent 9d9fa10 commit ea5bf7e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Sources/ParseLiveQuery/Internal/QueryEncoder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ extension Dictionary where Key: ExpressibleByStringLiteral, Value: AnyObject {
if let className = queryState?.value(forKey: "parseClassName") {
self["className"] = className as? Value
}
if let conditions: [String:AnyObject] = queryState?.value(forKey: "conditions") as? [String:AnyObject] {
if let conditions = queryState?.value(forKey: "conditions") as? [String:AnyObject] {
self["where"] = conditions.encodedQueryDictionary as? Value
} else { self["where"] = [:] as? Value }
} else {
self["where"] = [:] as? Value
}
}
}

Expand Down

0 comments on commit ea5bf7e

Please sign in to comment.