From 1521df23fdbd36ed38c9e387b378e29f401bec0a Mon Sep 17 00:00:00 2001 From: Daniel-I-Am Date: Thu, 13 Aug 2020 20:43:00 +0200 Subject: [PATCH] Fix indenting and add comment for future --- ChaosBot/Services/RestrictedConfig.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ChaosBot/Services/RestrictedConfig.cs b/ChaosBot/Services/RestrictedConfig.cs index 8c19c8b..d3a2c91 100644 --- a/ChaosBot/Services/RestrictedConfig.cs +++ b/ChaosBot/Services/RestrictedConfig.cs @@ -16,12 +16,13 @@ namespace ChaosBot.Services public static async Task IsAllowed(string key) { - List restrictedCfg = new List {"Database:Host", "Database:Port", "Database:Name", "Database:User", "Database:Pass", "Bot:Version", "NLog", "WebServer", "Discord:Token"}; + // TODO: List populated from DB + List restrictedCfg = new List {"Database:Host", "Database:Port", "Database:Name", "Database:User", "Database:Pass", "Bot:Version", "NLog", "WebServer", "Discord:Token"}; - if (restrictedCfg.Contains(key)) - return false; + if (restrictedCfg.Contains(key)) + return false; - return true; + return true; } } } \ No newline at end of file