From d1b2d1a10ef4109e4038417cb1246b522db3757b Mon Sep 17 00:00:00 2001 From: Felix Rieseberg Date: Fri, 12 Oct 2018 04:43:19 -0400 Subject: [PATCH] fix: Remove `statSyncNoException` for good (#15092) * fix: Small JS assignment error * fix: Call the right og method * fix: Goodbye, statSyncNoException --- lib/common/asar.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/lib/common/asar.js b/lib/common/asar.js index d0c76c0e5ec..1dc74aa9ecd 100644 --- a/lib/common/asar.js +++ b/lib/common/asar.js @@ -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)