Skip to content

Commit e5372df

Browse files
Use the static empty array initializer
1 parent 191acb4 commit e5372df

File tree

1 file changed

+1
-1
lines changed
  • Src/Autarkysoft.Bitcoin/Blockchain/Blocks

1 file changed

+1
-1
lines changed

Src/Autarkysoft.Bitcoin/Blockchain/Blocks/Block.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public int Weight
8080
/// <inheritdoc/>
8181
public BlockHeader Header { get; set; }
8282

83-
private ITransaction[] _txs = new ITransaction[0];
83+
private ITransaction[] _txs = Array.Empty<ITransaction>();
8484
/// <inheritdoc/>
8585
/// <exception cref="ArgumentNullException"/>
8686
public ITransaction[] TransactionList

0 commit comments

Comments
 (0)