From 93b5583b6a7ab92b1f1204659324affcfad9c06a Mon Sep 17 00:00:00 2001 From: Joey Guerra Date: Wed, 14 Aug 2024 16:17:20 -0500 Subject: [PATCH] fix: standard --- src/adapters/Shell.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/adapters/Shell.mjs b/src/adapters/Shell.mjs index 5e4bcb32e..2ba6ba4a2 100644 --- a/src/adapters/Shell.mjs +++ b/src/adapters/Shell.mjs @@ -92,13 +92,13 @@ class Shell extends Adapter { await this.receive(message) this.#rl.prompt() }) - + this.#rl.on('history', async (history) => { if (history.length === 0) return await fs.promises.appendFile(historyPath, `${history[0]}\n`) }) - let existingHistory = (await fs.promises.readFile(historyPath, 'utf8')).split('\n') + const existingHistory = (await fs.promises.readFile(historyPath, 'utf8')).split('\n') existingHistory.forEach(line => this.#rl.history.push(line)) try {