mirror of
https://github.com/PowerShell/PowerShell.git
synced 2024-11-23 01:34:19 +08:00
Fix erroneous assert (#13495)
This commit is contained in:
parent
8f37cced70
commit
0f02fd7f1d
@ -98,7 +98,7 @@ namespace System.Management.Automation.Remoting
|
||||
internal FragmentedRemoteObject(byte[] blob, long objectId, long fragmentId,
|
||||
bool isEndFragment)
|
||||
{
|
||||
Dbg.Assert((blob != null) || (blob.Length == 0), "Cannot create a fragment for null or empty data.");
|
||||
Dbg.Assert((blob != null) && (blob.Length != 0), "Cannot create a fragment for null or empty data.");
|
||||
Dbg.Assert(objectId >= 0, "Object Id cannot be < 0");
|
||||
Dbg.Assert(fragmentId >= 0, "Fragment Id cannot be < 0");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user