From ea5d30c2e2782f9b3da2f806d6aff048eb159de9 Mon Sep 17 00:00:00 2001 From: Jessica Pittman Date: Thu, 22 Sep 2016 12:26:21 -0500 Subject: [PATCH] Fixed linux issues. --- Sources/Deploy/main.swift | 2 +- Sources/TodoList/TodoList.swift | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/Deploy/main.swift b/Sources/Deploy/main.swift index 76dbbe0..ed96296 100644 --- a/Sources/Deploy/main.swift +++ b/Sources/Deploy/main.swift @@ -41,7 +41,7 @@ extension DatabaseConfiguration { self.password = nil self.port = UInt16(5984) } - self.options = [String : AnyObject]() + self.options = [String : Any]() } } diff --git a/Sources/TodoList/TodoList.swift b/Sources/TodoList/TodoList.swift index 7bcadbd..61819d7 100644 --- a/Sources/TodoList/TodoList.swift +++ b/Sources/TodoList/TodoList.swift @@ -66,7 +66,7 @@ public class TodoList: TodoListAPI { let userParameter = withUserID ?? "default" database.queryByView("user_todos", ofDesign: designName, - usingParameters: [.keys([userParameter as! AnyObject])]) { + usingParameters: [.keys([userParameter as Any])]) { document, error in if let document = document , error == nil { @@ -92,7 +92,7 @@ public class TodoList: TodoListAPI { database.queryByView("user_todos", ofDesign: designName, usingParameters: [.descending(true), .includeDocs(true), - .keys([userParameter as! AnyObject])]) { + .keys([userParameter as Any])]) { document, error in guard let document = document else { @@ -197,7 +197,7 @@ public class TodoList: TodoListAPI { database.queryByView("user_todos", ofDesign: designName, usingParameters: [.descending(true), .includeDocs(true), - .keys([userParameter as! AnyObject])]) { + .keys([userParameter as Any])]) { document, error in if let document = document , error == nil {