Skip to content

Commit

Permalink
fix: Remove statSyncNoException for good (#15092)
Browse files Browse the repository at this point in the history
* fix: Small JS assignment error

* fix: Call the right og method

* fix: Goodbye, statSyncNoException
  • Loading branch information
felixrieseberg authored and MarshallOfSound committed Oct 12, 2018
1 parent 5ef5d60 commit d1b2d1a
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions lib/common/asar.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,20 +292,6 @@
process.nextTick(() => fs.lstat(pathArgument, callback))
}

const { statSyncNoException } = fs
fs.statSyncNoException = pathArgument => {
const { isAsar, asarPath, filePath } = splitPath(pathArgument)
if (!isAsar) return statSyncNoException(pathArgument)

const archive = getOrCreateArchive(asarPath)
if (!archive) return false

const stats = archive.stat(filePath)
if (!stats) return false

return asarStatsToFsStats(stats)
}

const { realpathSync } = fs
fs.realpathSync = function (pathArgument) {
const { isAsar, asarPath, filePath } = splitPath(pathArgument)
Expand Down

0 comments on commit d1b2d1a

Please sign in to comment.