Skip to content
This repository was archived by the owner on Jul 3, 2019. It is now read-only.

Commit 1339031

Browse files
committed
Sources/UIWebKit/UIWebPage.swift - Removed try from non-throwing methods
1 parent 171ae2c commit 1339031

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/UIWebKit/UIWebPage.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ open class UIWebPage {
6868
///
6969
/// - Returns: A view that contains the pages HTML in bytes.
7070
/// - Throws: Any errors that get thrown when creating the view.
71-
public func render()throws -> View {
71+
public func render() -> View {
7272
self.configure()
7373
var html = ""
7474
html.append("<!DOCTYPE html>")
@@ -93,7 +93,7 @@ open class UIWebPage {
9393
}
9494
html.append("</body>")
9595

96-
return try View(bytes: html.bytes)
96+
return View(bytes: html.bytes)
9797
}
9898

9999
/// Adds dependancies that will be loaded into the webpage.
@@ -110,7 +110,7 @@ extension UIWebPage: ResponseRepresentable {
110110
///
111111
/// - Returns: A response containing the view from rendering.
112112
/// - Throws: Any errors generated from creating the view.
113-
public func makeResponse() throws -> Response {
114-
return try render().makeResponse()
113+
public func makeResponse()throws -> Response {
114+
return render().makeResponse()
115115
}
116116
}

0 commit comments

Comments
 (0)