Skip to content

Commit

Permalink
Use fs.rm instead of deprecated fs.rmdir for recursive opt
Browse files Browse the repository at this point in the history
  • Loading branch information
ZIMkaRU committed Sep 14, 2023
1 parent 5b8b783 commit 5177c3e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/auto-updater/bfx.mac.updater.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

const path = require('path')
const fs = require('fs')
const fsPromises = require('fs/promises')
const { spawn } = require('child_process')
const { MacUpdater } = require('electron-updater')
const extract = require('extract-zip')
Expand Down Expand Up @@ -54,7 +55,7 @@ class BfxMacUpdater extends MacUpdater {
const dist = path.join(root, '..')
const exec = path.join(root, 'Contents/MacOS/Bitfinex Report')

await fs.promises.rmdir(root, { recursive: true })
await fsPromises.rm(root, { recursive: true })

await extract(
downloadedFilePath,
Expand Down

0 comments on commit 5177c3e

Please sign in to comment.