Skip to content

Commit

Permalink
chore: Remove unnecessary dispose function call in init
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert27 committed Aug 1, 2024
1 parent 2952e30 commit ef662ca
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/track.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ let _client: AptabaseClient | undefined;
export function init(appKey: string, options?: AptabaseOptions) {
const [ok, msg] = validate(Platform.OS, appKey, options);
if (!ok) {
if (_client) {
dispose();
}
console.warn(`Aptabase: ${msg}. Tracking will be disabled.`);
return;
}
Expand Down

0 comments on commit ef662ca

Please sign in to comment.