Fixes null propogation
This commit is contained in:
parent
22ab83ea9e
commit
3c9842ee5a
218 changed files with 799 additions and 1458 deletions
|
|
@ -54,9 +54,7 @@ namespace Server {
|
|||
if ( FileOperations.AreSynchronous ) {
|
||||
fileStream.Write( chunk.Buffer, chunk.Offset, chunk.Size );
|
||||
|
||||
if ( metrics != null ) {
|
||||
metrics.OnFileWritten( chunk.Size );
|
||||
}
|
||||
metrics?.OnFileWritten( chunk.Size );
|
||||
|
||||
chunk.Commit();
|
||||
} else {
|
||||
|
|
@ -73,9 +71,7 @@ namespace Server {
|
|||
|
||||
fileStream.EndWrite( asyncResult );
|
||||
|
||||
if ( metrics != null ) {
|
||||
metrics.OnFileWritten( chunk.Size );
|
||||
}
|
||||
metrics?.OnFileWritten( chunk.Size );
|
||||
|
||||
chunk.Commit();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue