Skip to content

Commit

Permalink
Update to latest net9 preview (#2621)
Browse files Browse the repository at this point in the history
* Update to newest NET9 preview

* Fix new NET9 errors

---------

Co-authored-by: Franco Fung <[email protected]>
  • Loading branch information
FuPingFranco and Franco Fung authored May 31, 2024
1 parent 33c8c42 commit 12cd3dc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dotnetcore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: Setup .NET 9.0.x
uses: actions/[email protected]
with:
dotnet-version: 9.0.100-preview.2.24157.14
dotnet-version: 9.0.100-preview.4.24267.66

- name: Run the tests
run: dotnet test Wilson.sln
Expand Down
2 changes: 1 addition & 1 deletion build/template-Build-run-tests-sign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ steps:
- task: UseDotNet@2
displayName: 'Use .Net Core SDK 9.x'
inputs:
version: 9.0.100-preview.2.24157.14
version: 9.0.100-preview.4.24267.66
includePreviewVersions: true
condition: eq(variables['TargetNet9'], 'True')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ internal bool ValidKeySize()
/// <inheritdoc/>
public override bool Sign(ReadOnlySpan<byte> input, Span<byte> signature, out int bytesWritten)
{
if (input == null || input.Length == 0)
if (input.Length == 0)
throw LogHelper.LogArgumentNullException(nameof(input));

if (_disposed)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public override byte[] Sign(byte[] input)
/// <inheritdoc/>
public override bool Sign(ReadOnlySpan<byte> input, Span<byte> signature, out int bytesWritten)
{
if (input == null || input.Length == 0)
if (input.Length == 0)
throw LogHelper.LogArgumentNullException(nameof(input));

if (_disposed)
Expand Down

0 comments on commit 12cd3dc

Please sign in to comment.