Skip to content

Commit

Permalink
Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Mar 14, 2021
1 parent 6ffb4c6 commit e353d45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,15 +169,15 @@ class ReaddirpStream extends Readable {
} catch (error) {
this._onError(error);
}
return {files, depth, path};
return { files, depth, path };
}

async _formatEntry(dirent, path) {
let entry;
try {
const basename = this._isDirent ? dirent.name : dirent;
const fullPath = sysPath.resolve(sysPath.join(path, basename));
entry = {path: sysPath.relative(this._root, fullPath), fullPath, basename};
entry = { path: sysPath.relative(this._root, fullPath), fullPath, basename };
entry[this._statsProp] = this._isDirent ? dirent : await this._stat(fullPath);
} catch (err) {
this._onError(err);
Expand Down

0 comments on commit e353d45

Please sign in to comment.