Skip to content

Commit dd3ca6f

Browse files
authored
Update MemoryPool.cs
1 parent 7f98106 commit dd3ca6f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Neo/Ledger/MemoryPool.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,10 @@ public bool TryGetValue(UInt256 hash, [MaybeNullWhen(false)] out Transaction? tx
164164
_txRwLock.EnterReadLock();
165165
try
166166
{
167-
var ret = _unsortedTransactions.TryGetValue(hash, out var item)
168-
|| _unverifiedTransactions.TryGetValue(hash, out item);
169-
tx = ret ? item!.Tx : null;
170-
return ret;
167+
_ = _unsortedTransactions.TryGetValue(hash, out var item)
168+
|| _unverifiedTransactions.TryGetValue(hash, out item);
169+
tx = item?.Tx;
170+
return tx != null;
171171
}
172172
finally
173173
{

0 commit comments

Comments
 (0)