Skip to content

Commit

Permalink
chore: remove process.browser dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
jayree committed Jun 25, 2023
1 parent 0fa17a2 commit 62765eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/models/FileSystem.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,11 @@ export class FileSystem {
try {
const stats = await this._lstat(filename)
// For non-browser (local) scenarios regular git 'add' command might be used to write the index. Therefore we need to have the exact nanoseconds (see. normalizeStats.js SecondsNanoseconds ).
if (!process.browser) {
try {
const statsNs = await this._lstat(filename, { bigint: true })
stats.mtimeNs = statsNs.mtimeNs
stats.ctimeNs = statsNs.ctimeNs
}
} catch (error) {}
return stats
} catch (err) {
if (err.code === 'ENOENT') {
Expand Down

0 comments on commit 62765eb

Please sign in to comment.