mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Use is not syntax part 2 (#13338)
This commit is contained in:
1 parent
45ffc2c6e5
commit
03a58c4186
42 files changed
+97
-69
No files matched your search
@@ -189,7 +189,7 @@ namespace System.Management.Automation
|
||||
if (pso != null)
|
||||
{
|
||||
object baseObject = pso.BaseObject;
|
||||
if (baseObject != null && !(baseObject is PSCustomObject))
|
||||
if (baseObject != null && baseObject is not PSCustomObject)
|
||||
result = baseObject.ToString();
|
||||
else
|
||||
result = pso.ToString();
|
||||
|
||||
Reference in new issue
Block a user