lint fix
This commit is contained in:
parent
a23b25bff7
commit
5d94062581
2 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,7 @@ export class APIClient {
|
|||
this.credential = opts.credential;
|
||||
// ネイティブ関数をそのまま変数に代入して使おうとするとChromiumではIllegal invocationエラーが発生するため、
|
||||
// 環境で実装されているfetchを使う場合は無名関数でラップして使用する
|
||||
this.fetch = opts.fetch || ((...args) => fetch(...args));
|
||||
this.fetch = opts.fetch ?? ((...args) => fetch(...args));
|
||||
}
|
||||
|
||||
public request<E extends keyof Endpoints, P extends Endpoints[E]['req']>(
|
||||
|
|
|
@ -36,7 +36,7 @@ export default class Stream extends EventEmitter<StreamEvents> {
|
|||
WebSocket?: any;
|
||||
}) {
|
||||
super();
|
||||
options = options || { };
|
||||
options = options ?? { };
|
||||
|
||||
const query = urlQuery({
|
||||
i: user?.token,
|
||||
|
|
Loading…
Reference in a new issue