🔨 Refactor(custom): add eslint disable line

This commit is contained in:
Kuingsmile 2024-02-22 01:59:05 -08:00
parent 4be82e0afc
commit e18018dfa3

View File

@ -53,8 +53,10 @@ class SSHClient {
const promise = new Promise((resolve, reject) => {
client.on('ready', () => {
client.sftp((err, sftp) => {
// eslint-disable-next-line prefer-promise-reject-errors
if (err) reject(false)
sftp.unlink(remote, (err) => {
// eslint-disable-next-line prefer-promise-reject-errors
if (err) reject(false)
client.end()
resolve(true)