mirror of
https://github.com/atom/atom.git
synced 2026-02-12 15:45:23 -05:00
Don't normalize undefined devResourcePath on Windows
This commit is contained in:
@@ -183,7 +183,7 @@ module.exports = function parseCommandLine (processArgs, initialResourcePath) {
|
||||
}
|
||||
|
||||
function normalizeDriveLetterName (filePath) {
|
||||
if (process.platform === 'win32') {
|
||||
if (process.platform === 'win32' && filePath) {
|
||||
return filePath.replace(/^([a-z]):/, ([driveLetter]) => driveLetter.toUpperCase() + ':')
|
||||
} else {
|
||||
return filePath
|
||||
|
||||
Reference in New Issue
Block a user