Skip to content

Commit

Permalink
Fix nullability
Browse files Browse the repository at this point in the history
  • Loading branch information
kiminuo committed Jan 22, 2024
1 parent 26e230b commit 47eb687
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WalletWasabi/Wallets/P2PBlockProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ internal P2PBlockProvider(Network network, NodesGroup nodes, bool isTorEnabled)
/// <returns>Requested block, or <c>null</c> if the block could not get downloaded for any reason.</returns>
public async Task<Block?> TryGetBlockAsync(uint256 blockHash, CancellationToken cancellationToken)
{
P2pBlockResponse? blockWithSourceData = await TryGetBlockWithSourceDataAsync(blockHash, P2pSourceRequest.Automatic, cancellationToken).ConfigureAwait(false);
return blockWithSourceData?.Block;
P2pBlockResponse blockWithSourceData = await TryGetBlockWithSourceDataAsync(blockHash, P2pSourceRequest.Automatic, cancellationToken).ConfigureAwait(false);
return blockWithSourceData.Block;
}

/// <inheritdoc/>
Expand Down

0 comments on commit 47eb687

Please sign in to comment.