style: fix whitespace in step functions for SFTP methods

This commit is contained in:
Ethanfly 2025-12-29 15:16:51 +08:00
parent 92147b39ec
commit eeff7271a1

View File

@ -127,7 +127,7 @@ class SFTPService {
sftp.fastGet(remotePath, localPath, { sftp.fastGet(remotePath, localPath, {
concurrency: 1, // 单线程下载,更稳定 concurrency: 1, // 单线程下载,更稳定
chunkSize: 32768, // 32KB 块大小 chunkSize: 32768, // 32KB 块大小
step: function(transferred, chunk, total) { step: function (transferred, chunk, total) {
const percent = Math.round((transferred / total) * 100); const percent = Math.round((transferred / total) * 100);
if (self.progressCallback) { if (self.progressCallback) {
self.progressCallback({ self.progressCallback({
@ -175,7 +175,7 @@ class SFTPService {
sftp.fastPut(localPath, remotePath, { sftp.fastPut(localPath, remotePath, {
concurrency: 1, // 单线程上传,更稳定 concurrency: 1, // 单线程上传,更稳定
chunkSize: 32768, // 32KB 块大小 chunkSize: 32768, // 32KB 块大小
step: function(transferred, chunk, total) { step: function (transferred, chunk, total) {
const percent = Math.round((transferred / total) * 100); const percent = Math.round((transferred / total) * 100);
if (self.progressCallback) { if (self.progressCallback) {
self.progressCallback({ self.progressCallback({