From 6dafa035542ee6ae140cb7772bd6d06e3572c32f Mon Sep 17 00:00:00 2001 From: Michael Bucari-Tovo Date: Thu, 1 Jul 2021 13:14:54 -0600 Subject: [PATCH] Replaced property name string with nameof. --- LibationLauncher/Program.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/LibationLauncher/Program.cs b/LibationLauncher/Program.cs index 9fc3815d..dd90d97a 100644 --- a/LibationLauncher/Program.cs +++ b/LibationLauncher/Program.cs @@ -30,7 +30,7 @@ namespace LibationLauncher migrate_to_v4_0_0(); migrate_to_v5_0_0(); - + ensureLoggingConfig(); ensureSerilogConfig(); configureLogging(); @@ -213,9 +213,10 @@ namespace LibationLauncher { var persistentDictionary = new PersistentDictionary(Configuration.Instance.SettingsFilePath); - if (persistentDictionary.GetString("AllowLibationFixup") is null) + var config = Configuration.Instance; + if (persistentDictionary.GetString(nameof(config.AllowLibationFixup)) is null) { - persistentDictionary.Set("AllowLibationFixup", true); + persistentDictionary.Set(nameof(config.AllowLibationFixup), true); } if (!File.Exists(AudibleApiStorage.AccountsSettingsFile))