Skip to content

Commit b7914b2

Browse files
committed
chore: lint format
1 parent d67d6a2 commit b7914b2

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/index.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,10 @@ class SocketIO {
214214
* @param callback
215215
*/
216216
updateSocketOptions(options: SocketIOOptions, callback: Function) {
217-
if(!options) throw new Error('options is a required property of type "SocketIOOptions"');
217+
if (!options)
218+
throw new Error(
219+
'options is a required property of type "SocketIOOptions"'
220+
);
218221

219222
this.SocketIOModule.updateSocketOptions(options, callback);
220223
}
@@ -225,7 +228,10 @@ class SocketIO {
225228
* @param options
226229
*/
227230
updateSocketOptionsSync(options: SocketIOOptions) {
228-
if(!options) throw new Error('options is a required property of type "SocketIOOptions"');
231+
if (!options)
232+
throw new Error(
233+
'options is a required property of type "SocketIOOptions"'
234+
);
229235

230236
this.SocketIOModule.updateSocketOptionsSync(options);
231237
}

0 commit comments

Comments
 (0)