Refactor code to .NET8
This commit is contained in:
@@ -31,7 +31,7 @@ public class T1R1Processor
|
||||
{
|
||||
var year = int.Parse(processWorker.Records?.SingleOrDefault(x => x.Code == "Year")?.Desc1!);
|
||||
var sources = processWorker.Records?.Where(x => x.Code == "Source").ToList();
|
||||
if (!sources!.Any())
|
||||
if (sources!.Count == 0)
|
||||
{
|
||||
throw new Exception("Source record not found");
|
||||
}
|
||||
@@ -71,7 +71,7 @@ public class T1R1Processor
|
||||
|
||||
var dataSources = new List<Layer>();
|
||||
|
||||
foreach (var source in sources!)
|
||||
foreach (var source in sources)
|
||||
{
|
||||
for (var month = 1; month <= DateTime.UtcNow.Month; month++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user