Redo Reformat and cleanup.

Rider EAP was having a bug interpreting .editorconfig that didn't generate the code style as we wanted.
This is now done with Rider-stable.
This commit is contained in:
2023-10-04 17:34:26 +01:00
parent 39d41b1503
commit 7796540b5e
24 changed files with 293 additions and 453 deletions

View File

@@ -65,8 +65,7 @@ public sealed class FiltersList
{
var filter = (IFilter)type.GetConstructor(Type.EmptyTypes)?.Invoke(Array.Empty<object>());
if(filter != null &&
!Filters.ContainsKey(filter.Name.ToLower()))
if(filter != null && !Filters.ContainsKey(filter.Name.ToLower()))
Filters.Add(filter.Name.ToLower(), filter);
}
catch(Exception exception)
@@ -92,8 +91,8 @@ public sealed class FiltersList
if(!filter.Identify(path))
continue;
var foundFilter = (IFilter)filter.GetType().GetConstructor(Type.EmptyTypes)?.
Invoke(Array.Empty<object>());
var foundFilter =
(IFilter)filter.GetType().GetConstructor(Type.EmptyTypes)?.Invoke(Array.Empty<object>());
if(foundFilter?.Open(path) == ErrorNumber.NoError)
return foundFilter;