Skip to content

Commit

Permalink
style: 💄 run Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Jun 17, 2023
1 parent 99b12dc commit dc904d9
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/fsa-to-node/FsaNodeFs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,10 @@ export class FsaNodeFs implements FsCallbackApi, FsCommonObjects {
} catch (error) {
if (error && typeof error === 'object') {
switch (error.name) {
case 'TypeMismatchError': return await dir.getDirectoryHandle(name);
case 'NotFoundError': throw createError('ENOENT', funcName, path.join(FsaToNodeConstants.Separator));
case 'TypeMismatchError':
return await dir.getDirectoryHandle(name);
case 'NotFoundError':
throw createError('ENOENT', funcName, path.join(FsaToNodeConstants.Separator));
}
}
throw error;
Expand Down Expand Up @@ -287,8 +289,7 @@ export class FsaNodeFs implements FsCallbackApi, FsCommonObjects {
): void => {
const [opts, callback] = getRealpathOptsAndCb(a, b);
let pathFilename = pathToFilename(path);
if (pathFilename[0] !== FsaToNodeConstants.Separator)
pathFilename = FsaToNodeConstants.Separator + pathFilename;
if (pathFilename[0] !== FsaToNodeConstants.Separator) pathFilename = FsaToNodeConstants.Separator + pathFilename;
callback(null, strToEncoding(pathFilename, opts.encoding));
};

Expand Down Expand Up @@ -340,7 +341,7 @@ export class FsaNodeFs implements FsCallbackApi, FsCommonObjects {
size = fileData.size;
}
const stats = new FsaNodeStats(bigint, bigint ? BigInt(size) : size, handle);
return stats;
return stats;
}

public readonly rename: FsCallbackApi['rename'] = (
Expand Down

0 comments on commit dc904d9

Please sign in to comment.