From bd52faa153a2ea66897636fc9b539053e9995cd8 Mon Sep 17 00:00:00 2001 From: tianp Date: Mon, 17 Mar 2025 16:00:31 +0800 Subject: [PATCH] =?UTF-8?q?write=20promise=E6=8E=A5=E5=8F=A3=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E5=8C=96=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- interfaces/kits/js/src/mod_fs/ani/ets/@ohos.file.fs.ets | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/interfaces/kits/js/src/mod_fs/ani/ets/@ohos.file.fs.ets b/interfaces/kits/js/src/mod_fs/ani/ets/@ohos.file.fs.ets index c2294a03..69adab81 100644 --- a/interfaces/kits/js/src/mod_fs/ani/ets/@ohos.file.fs.ets +++ b/interfaces/kits/js/src/mod_fs/ani/ets/@ohos.file.fs.ets @@ -753,7 +753,8 @@ class fileIo { }); } - static write(fd: number, buffer: string | ArrayBuffer, options: WriteOptions, callback: AsyncCallback): void { + static write(fd: number, buffer: string | ArrayBuffer, options: WriteOptions, + callback: AsyncCallback): void { let promise = taskpool.execute(fileIo.writeSync1, fd, buffer, options); promise.then((ret: NullishType): void => { let err = new BusinessError(-1, ""); -- Gitee