mirror of
https://github.com/Kuingsmile/PicList.git
synced 2025-02-02 11:08:13 -05:00
🔨 Refactor(custom): add eslint disable line
This commit is contained in:
parent
4be82e0afc
commit
e18018dfa3
@ -53,8 +53,10 @@ class SSHClient {
|
|||||||
const promise = new Promise((resolve, reject) => {
|
const promise = new Promise((resolve, reject) => {
|
||||||
client.on('ready', () => {
|
client.on('ready', () => {
|
||||||
client.sftp((err, sftp) => {
|
client.sftp((err, sftp) => {
|
||||||
|
// eslint-disable-next-line prefer-promise-reject-errors
|
||||||
if (err) reject(false)
|
if (err) reject(false)
|
||||||
sftp.unlink(remote, (err) => {
|
sftp.unlink(remote, (err) => {
|
||||||
|
// eslint-disable-next-line prefer-promise-reject-errors
|
||||||
if (err) reject(false)
|
if (err) reject(false)
|
||||||
client.end()
|
client.end()
|
||||||
resolve(true)
|
resolve(true)
|
||||||
|
Loading…
Reference in New Issue
Block a user