Skip to content

Commit bf6c51b

Browse files
committed
style: let's be lenient on how people write
1 parent 327a96a commit bf6c51b

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

.commitlintrc.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
"rules": {
44
"scope-enum": [2, "always", ["js", "react", ""]],
55
"body-max-line-length": [0],
6-
"footer-max-line-length": [0]
6+
"footer-max-line-length": [0],
7+
"header-case": [0],
8+
"body-case": [0]
79
}
810
}

client-js/client/client.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ export class PipecatClient extends RTVIEventEmitter {
219219
const data = message.data as ErrorData;
220220
if (data?.fatal) {
221221
logger.error("Fatal error reported. Disconnecting...");
222-
this.disconnect();
222+
void this.disconnect();
223223
}
224224
},
225225
onConnected: () => {
@@ -307,7 +307,7 @@ export class PipecatClient extends RTVIEventEmitter {
307307
this.emit(RTVIEvent.BotDisconnected, p);
308308
if (this._disconnectOnBotDisconnect) {
309309
logger.info("Bot disconnected. Disconnecting client...");
310-
this.disconnect();
310+
void this.disconnect();
311311
}
312312
},
313313
onUserStartedSpeaking: () => {
@@ -494,7 +494,7 @@ export class PipecatClient extends RTVIEventEmitter {
494494
);
495495
await this._transport.sendReadyMessage();
496496
} catch (e) {
497-
this.disconnect();
497+
void this.disconnect();
498498
reject(e);
499499
return;
500500
}

0 commit comments

Comments
 (0)