CodeFactor code style cleanup: replace literal empty strings with 'string.Empty' (#6950)

This commit is contained in:
Ilya
2018-06-12 12:30:10 -07:00
committed by Dongbo Wang
parent 11a98c47fb
commit e177fcaef6
160 changed files with 765 additions and 777 deletions
@@ -478,7 +478,7 @@ namespace Microsoft.PowerShell.Commands
{
// if the module in the moduleTable is an assembly module without path, the moduleName is the key.
string moduleName = "dynamic_code_module_" + suppliedAssembly;
if (pair.Value.Path == "")
if (pair.Value.Path == string.Empty)
{
if (pair.Key.Equals(moduleName, StringComparison.OrdinalIgnoreCase))
{
@@ -1219,7 +1219,7 @@ namespace Microsoft.PowerShell.Commands
return true;
}
if (manifestEntries.Any(s => FixupFileName("", s, ".ps1xml").EndsWith(cimModuleFile.FileName, StringComparison.OrdinalIgnoreCase)))
if (manifestEntries.Any(s => FixupFileName(string.Empty, s, ".ps1xml").EndsWith(cimModuleFile.FileName, StringComparison.OrdinalIgnoreCase)))
{
return true;
}