mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-22 11:04:42 -07:00
Disallow floating promises. (#14605)
This commit is contained in:
committed by
GitHub
parent
3cf44acc08
commit
025e450ac2
@@ -105,6 +105,7 @@ export class Connection {
|
||||
this.#handler = handler;
|
||||
this.#peerInput = peerInput;
|
||||
this.#textEncoder = new TextEncoder();
|
||||
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
||||
this.#receive(peerOutput);
|
||||
}
|
||||
|
||||
@@ -121,6 +122,7 @@ export class Connection {
|
||||
|
||||
if (trimmedLine) {
|
||||
const message = JSON.parse(trimmedLine);
|
||||
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
||||
this.#processMessage(message);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -289,6 +289,7 @@ export class Session {
|
||||
text: part.text,
|
||||
};
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
||||
this.sendUpdate({
|
||||
sessionUpdate: part.thought
|
||||
? 'agent_thought_chunk'
|
||||
|
||||
Reference in New Issue
Block a user