Don't use wmic's ProviderName if it's empty

Changelog-entry: Don't use wmic's ProviderName if it's empty
Change-type: patch
This commit is contained in:
Alexis Svinartchouk 2019-07-22 17:45:27 +02:00
parent 86238af380
commit b5d04a2031
2 changed files with 2 additions and 0 deletions

View File

@ -107,6 +107,8 @@ const getWindowsNetworkDrives = async () => {
// eslint-disable-next-line no-magic-numbers
return [ str.slice(0, colonPosition + 1), _.trim(str.slice(colonPosition + 1)) ]
})
// eslint-disable-next-line no-magic-numbers
.filter((couple) => couple[1].length > 0)
.value()
return new Map(couples)
}

Binary file not shown.