Browse Source

Merge pull request #409 from ionite34/fix-assert

pull/333/head
Ionite 11 months ago committed by GitHub
parent
commit
7ca1677fd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      StabilityMatrix.Core/Python/PipPackageSpecifier.cs

7
StabilityMatrix.Core/Python/PipPackageSpecifier.cs

@ -17,8 +17,11 @@ public partial record PipPackageSpecifier
public static PipPackageSpecifier Parse(string value)
{
Debug.Assert(TryParse(value, true, out var packageSpecifier));
return packageSpecifier;
var result = TryParse(value, true, out var packageSpecifier);
Debug.Assert(result);
return packageSpecifier!;
}
public static bool TryParse(string value, [NotNullWhen(true)] out PipPackageSpecifier? packageSpecifier)

Loading…
Cancel
Save