Mo re spa ci ng

This commit is contained in:
Asher 2019-02-06 12:00:51 -06:00
parent 33b4c96a27
commit 559bdbc147
No known key found for this signature in database
GPG Key ID: 7BB4BA9C783D2BBC
1 changed files with 9 additions and 9 deletions

View File

@ -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,
});
});
});
});
};