Don't normalize undefined devResourcePath on Windows

This commit is contained in:
David Wilson
2018-08-21 14:20:42 -07:00
parent ba12a1e2fc
commit 2d65535147

View File

@@ -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