Skip to content

Commit

Permalink
fixup! keep logs.get()
Browse files Browse the repository at this point in the history
Signed-off-by: Miroslav Bajtoš <[email protected]>
  • Loading branch information
bajtos committed Feb 13, 2024
1 parent f7f5906 commit 09efdc1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ async function setup (ctx) {
ctx.showUI()
const { filePath } = await dialog.showSaveDialog(opts)
if (filePath) {
await fs.writeFile(filePath, logs.getLines())
await fs.writeFile(filePath, logs.get())
}
}
await maybeMigrateFiles()
Expand Down
2 changes: 1 addition & 1 deletion main/logs.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Logs {
this.#logs.splice(0, this.#logs.length - 100)
}

getLines () {
get () {
return this.getLastLines(Infinity)
}

Expand Down

0 comments on commit 09efdc1

Please sign in to comment.