Skip to content

Commit

Permalink
Update packages/analytics-core/src/config.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Justin Fiedler <[email protected]>
  • Loading branch information
Mercy811 and justin-fiedler authored Oct 12, 2023
1 parent 266c52c commit 48152da
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/analytics-core/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,7 @@ export class Config implements IConfig {
this.transportProvider = options.transportProvider;
this.useBatch = options.useBatch ?? defaultConfig.useBatch;

if (options.diagnosticProvider == undefined) {
this.diagnosticProvider = defaultConfig.diagnosticProvider;
} else {
this.diagnosticProvider = options.diagnosticProvider;
}
this.diagnosticProvider = options.diagnosticProvider ?? defaultConfig.diagnosticProvider;
this.diagnosticProvider.apiKey = this.apiKey;

this.loggerProvider.enable(this.logLevel);
Expand Down

0 comments on commit 48152da

Please sign in to comment.