edited if statement in FinalizeKusto to not be nested

This commit is contained in:
Victoria 2024-07-12 13:49:23 -07:00
Родитель d4eb4c763d
Коммит fe4a4d55cc
1 изменённых файлов: 5 добавлений и 8 удалений

Просмотреть файл

@ -227,16 +227,13 @@ namespace CollectSFData
{ {
Log.Warning($"there may have been errors during kusto import. {Config.CacheLocation} has *not* been deleted."); Log.Warning($"there may have been errors during kusto import. {Config.CacheLocation} has *not* been deleted.");
} }
else if (Config.IsKustoConfigured() && Config.IsIngestionLocal)
{
Log.Last($"{Instance.Kusto.Endpoint.ClusterName}", ConsoleColor.Cyan);
}
else if (Config.IsKustoConfigured()) else if (Config.IsKustoConfigured())
{ {
if (Config.IsIngestionLocal) Log.Last($"{Constants.DataExplorer}/clusters/{Instance.Kusto.Endpoint.ClusterName}/databases/{Instance.Kusto.Endpoint.DatabaseName}", ConsoleColor.Cyan);
{
Log.Last($"{Instance.Kusto.Endpoint.ClusterName}", ConsoleColor.Cyan);
}
else
{
Log.Last($"{Constants.DataExplorer}/clusters/{Instance.Kusto.Endpoint.ClusterName}/databases/{Instance.Kusto.Endpoint.DatabaseName}", ConsoleColor.Cyan);
}
} }
if (Instance.FileObjects.Any(FileStatus.failed | FileStatus.uploading)) if (Instance.FileObjects.Any(FileStatus.failed | FileStatus.uploading))