Use object initializer.

This commit is contained in:
2023-10-04 08:39:42 +01:00
parent 9859c8d9eb
commit 2a93125433
3 changed files with 15 additions and 9 deletions

View File

@@ -60,8 +60,10 @@ public class Scan
if(cicm is null)
return null;
var scan = new Scan();
scan.File = cicm.File;
var scan = new Scan
{
File = cicm.File
};
if(cicm.Checksums is not null)
{