mirror of
https://github.com/electron/electron.git
synced 2026-01-28 16:58:21 -05:00
* chore: reformat code * refactor: getOrCreateArchive() for ASARs - store cached archive in a Map - return `null` instead of `false` on failures * refactor: splitPath() for ASARs - store custom extension in a constant - remove magic numbers - add comments * refactor: explicitly use assert() for a developer error * chore: remove console.log() calls * refactor: replace "p" arguments with "pathArgument" "path" would be a better name, but it is already taken but the "path" Node module. * refactor: createError() for ASARs - return an `Error` instance - use enum for error types - minor improvements * refactor: use more meaningful name for an arg than just "arg"