style: Solution-wide code cleanup

json-serializing-nullable-fields-issue
Robert Dailey 9 months ago
parent bc5b517251
commit e0913c7a4f

@ -14,8 +14,8 @@ public class LogJanitor : ILogJanitor
public void DeleteOldestLogFiles(int numberOfNewestToKeep) public void DeleteOldestLogFiles(int numberOfNewestToKeep)
{ {
foreach (var file in _paths.LogDirectory.GetFiles() foreach (var file in _paths.LogDirectory.GetFiles()
.OrderByDescending(f => f.Name) .OrderByDescending(f => f.Name)
.Skip(numberOfNewestToKeep)) .Skip(numberOfNewestToKeep))
{ {
file.Delete(); file.Delete();
} }

@ -7,8 +7,8 @@ public static class ConfigContextualMessages
public static string? GetContextualErrorFromException(YamlException e) public static string? GetContextualErrorFromException(YamlException e)
{ {
if (e.Message.Contains( if (e.Message.Contains(
"Property 'reset_unmatched_scores' not found on type " + "Property 'reset_unmatched_scores' not found on type " +
$"'{typeof(QualityScoreConfigYaml).FullName}'")) $"'{typeof(QualityScoreConfigYaml).FullName}'"))
{ {
return return
"Usage of 'reset_unmatched_scores' inside 'quality_profiles' under 'custom_formats' is no " + "Usage of 'reset_unmatched_scores' inside 'quality_profiles' under 'custom_formats' is no " +

@ -7,8 +7,8 @@ public static class SettingsContextualMessages
public static string? GetContextualErrorFromException(YamlException e) public static string? GetContextualErrorFromException(YamlException e)
{ {
if (e.Message.Contains( if (e.Message.Contains(
"Property 'repository' not found on type " + "Property 'repository' not found on type " +
$"'{typeof(SettingsValues).FullName}'")) $"'{typeof(SettingsValues).FullName}'"))
{ {
return return
"Usage of 'repository' setting is no " + "Usage of 'repository' setting is no " +

Loading…
Cancel
Save