We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9ecd37 commit 06e03a6Copy full SHA for 06e03a6
1 file changed
src/index.ts
@@ -27,8 +27,8 @@ export class Deepgram {
27
28
constructor(apiKey: string, apiUrl?: string, requireSSL?: boolean) {
29
this._apiKey = apiKey;
30
- this._apiUrl = apiUrl || DefaultOptions.apiUrl;
31
- this._requireSSL = requireSSL || DefaultOptions.requireSSL;
+ this._apiUrl = apiUrl ?? DefaultOptions.apiUrl;
+ this._requireSSL = requireSSL ?? DefaultOptions.requireSSL;
32
33
/**
34
* Ensures that the provided options were provided
0 commit comments