diff --git a/RxExample/RxExample/Example.swift b/RxExample/RxExample/Example.swift index 222f4fdeb..06accee97 100644 --- a/RxExample/RxExample/Example.swift +++ b/RxExample/RxExample/Example.swift @@ -19,7 +19,7 @@ let MB = 1024 * 1024 func exampleError(_ error: String, location: String = "\(#file):\(#line)") -> NSError { - return NSError(domain: "ExampleError", code: -1, userInfo: [NSLocalizedDescriptionKey: "\(location): \(error)"]) + NSError(domain: "ExampleError", code: -1, userInfo: [NSLocalizedDescriptionKey: "\(location): \(error)"]) } extension String { diff --git a/RxExample/RxExample/String+URL.swift b/RxExample/RxExample/String+URL.swift index 51510087a..26f540b6a 100644 --- a/RxExample/RxExample/String+URL.swift +++ b/RxExample/RxExample/String+URL.swift @@ -9,6 +9,6 @@ extension String { var URLEscaped: String { - return self.addingPercentEncoding(withAllowedCharacters: .urlHostAllowed) ?? "" + self.addingPercentEncoding(withAllowedCharacters: .urlHostAllowed) ?? "" } }