From 6678c1e6f93290b38e9f47d1959eb0c704439f3e Mon Sep 17 00:00:00 2001 From: Daniel Shiposha Date: Fri, 23 Sep 2022 16:14:37 +0000 Subject: [PATCH] fix: use getApi instead of direct check --- --- a/tests/src/util/playgrounds/unique.ts +++ b/tests/src/util/playgrounds/unique.ts @@ -554,7 +554,6 @@ } constructApiCall(apiCall: string, params: any[]) { - if(this.api === null) throw Error('API not initialized'); if(!apiCall.startsWith('api.')) throw Error(`Invalid api call: ${apiCall}`); let call = this.getApi() as any; for(const part of apiCall.slice(4).split('.')) { -- gitstuff