From 559bdbc14734fd749a43abacec162a731af740b9 Mon Sep 17 00:00:00 2001 From: Asher Date: Wed, 6 Feb 2019 12:00:51 -0600 Subject: [PATCH] Mo re spa ci ng --- packages/server/src/fill.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/server/src/fill.ts b/packages/server/src/fill.ts index 4622ec31..693013c7 100644 --- a/packages/server/src/fill.ts +++ b/packages/server/src/fill.ts @@ -138,17 +138,17 @@ export const fillFs = (): void => { bytesRead: number; buffer: Buffer; }> => { - return new Promise((res, rej) => { - fs.read(fd, buffer, offset, length, position, (err, bytesRead, buffer) => { - if (err) { - return rej(err); - } + return new Promise((res, rej) => { + fs.read(fd, buffer, offset, length, position, (err, bytesRead, buffer) => { + if (err) { + return rej(err); + } - res({ - bytesRead, - buffer, - }); + res({ + bytesRead, + buffer, }); }); }); + }); };