mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
CodeFactor code style cleanup: replace literal empty strings with 'string.Empty' (#6950)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user