Skip to content

Commit

Permalink
fix: Spacing warnings from Swift lint
Browse files Browse the repository at this point in the history
Signed-off-by: jefft0 <jeff@thefirst.org>
  • Loading branch information
jefft0 committed Sep 6, 2022
1 parent 19dab7a commit 02edf1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion ios/Bridge/GomobileIPFS/Sources/IPFS.swift
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@ public class IPFS {
return try node.serveAPI(onTCPPort: onTCPPort)
}


/// Sets the primary and secondary DNS for gomobile (hacky, will be removed in future version)
/// - Parameters:
/// - primary: The primary DNS address in the form `<ip4>:<port>`
Expand Down
4 changes: 2 additions & 2 deletions ios/Bridge/GomobileIPFS/Sources/Node.swift
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,14 @@ public class Node {
/// - Parameter onMultiaddr: The multiaddr to serve on
/// - Parameter writable: If true: will also support support `POST`, `PUT`, and `DELETE` methods.
/// - Throws: `NodeError`: If the node failed to serve
public func serveGateway(onMultiaddr: String, writable: Bool = false) throws -> String{
public func serveGateway(onMultiaddr: String, writable: Bool = false) throws -> String {
var err: NSError?

let maddr = self.node.serveGatewayMultiaddr(onMultiaddr, writable: writable, error: &err)
if err != nil {
throw NodeError("unable to serve gateway on \(onMultiaddr)", err)
}

return maddr
}

Expand Down

0 comments on commit 02edf1d

Please sign in to comment.