Skip to content

Commit

Permalink
chore: move var declaration inside if block
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan-Nelson committed Sep 23, 2021
1 parent 9755fa9 commit a51bb12
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import Amplify
public class QueryPaginationBuilder {

static func fromSerializedMap(_ serializedMap: [String: Any]?) -> QueryPaginationInput? {
var page: UInt = 0, limit: UInt = QueryPaginationInput.defaultLimit;
if let data = serializedMap {
var page: UInt = 0, limit: UInt = QueryPaginationInput.defaultLimit;
if let pageInput = (data["page"] as? Int) {
page = UInt(pageInput)
}
Expand Down

0 comments on commit a51bb12

Please sign in to comment.