File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -133,9 +133,8 @@ open class Client {
133
133
/// @param String endPoint
134
134
///
135
135
/// @return Client
136
- /// @throws Exception
137
136
///
138
- open func setEndpoint(_ endPoint: String) throws -> Client {
137
+ open func setEndpoint(_ endPoint: String) -> Client {
139
138
if !endPoint.hasPrefix("http://") && !endPoint.hasPrefix("https://") {
140
139
fatalError("Invalid endpoint URL: \(endPoint)")
141
140
}
@@ -154,9 +153,8 @@ open class Client {
154
153
/// @param String endPoint
155
154
///
156
155
/// @return Client
157
- /// @throws Exception
158
156
///
159
- open func setEndpointRealtime(_ endPoint: String) throws -> Client {
157
+ open func setEndpointRealtime(_ endPoint: String) -> Client {
160
158
if !endPoint.hasPrefix("ws://") && !endPoint.hasPrefix("wss://") {
161
159
fatalError("Invalid realtime endpoint URL: \(endPoint)")
162
160
}
Original file line number Diff line number Diff line change @@ -130,9 +130,8 @@ open class Client {
130
130
/// @param String endPoint
131
131
///
132
132
/// @return Client
133
- /// @throws Exception
134
133
///
135
- open func setEndpoint(_ endPoint: String) throws -> Client {
134
+ open func setEndpoint(_ endPoint: String) -> Client {
136
135
if !endPoint.hasPrefix("http://") && !endPoint.hasPrefix("https://") {
137
136
fatalError("Invalid endpoint URL: \(endPoint)")
138
137
}
You can’t perform that action at this time.
0 commit comments