From a1461855c6eb59ab3563284fcf9e2263d1cab0ce Mon Sep 17 00:00:00 2001 From: Daniel-I-Am Date: Fri, 16 Oct 2020 19:00:22 +0200 Subject: [PATCH] Fix return type of RestrictedConfig.IsAllowed --- ChaosBot/Services/RestrictedConfig.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/ChaosBot/Services/RestrictedConfig.cs b/ChaosBot/Services/RestrictedConfig.cs index 21aa5e6..f535a7a 100644 --- a/ChaosBot/Services/RestrictedConfig.cs +++ b/ChaosBot/Services/RestrictedConfig.cs @@ -5,7 +5,7 @@ namespace ChaosBot.Services { public class RestrictedConfig { - public static Boolean IsAllowed(string key) + public static bool IsAllowed(string key) { // TODO: List populated from DB List restrictedCfg = new List @@ -32,10 +32,7 @@ namespace ChaosBot.Services "Database:Name", }; - if (restrictedCfg.Contains(key)) - return false; - - return true; + return !restrictedCfg.Contains(key); } } }