Skip to content

Commit 06e03a6

Browse files
authored
feat: Use nullish coalescing (#136)
* Updates for onprem streaming * Removing temporary work
1 parent a9ecd37 commit 06e03a6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ export class Deepgram {
2727

2828
constructor(apiKey: string, apiUrl?: string, requireSSL?: boolean) {
2929
this._apiKey = apiKey;
30-
this._apiUrl = apiUrl || DefaultOptions.apiUrl;
31-
this._requireSSL = requireSSL || DefaultOptions.requireSSL;
30+
this._apiUrl = apiUrl ?? DefaultOptions.apiUrl;
31+
this._requireSSL = requireSSL ?? DefaultOptions.requireSSL;
3232

3333
/**
3434
* Ensures that the provided options were provided

0 commit comments

Comments
 (0)