Skip to content

Commit ef662ca

Browse files
committed
chore: Remove unnecessary dispose function call in init
1 parent 2952e30 commit ef662ca

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/track.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ let _client: AptabaseClient | undefined;
1515
export function init(appKey: string, options?: AptabaseOptions) {
1616
const [ok, msg] = validate(Platform.OS, appKey, options);
1717
if (!ok) {
18-
if (_client) {
19-
dispose();
20-
}
2118
console.warn(`Aptabase: ${msg}. Tracking will be disabled.`);
2219
return;
2320
}

0 commit comments

Comments
 (0)