From 38c4190d0d13aa23f05a3080079a6b3df9a413b9 Mon Sep 17 00:00:00 2001 From: Kieran Coldron Date: Wed, 5 May 2021 19:24:49 +0100 Subject: [PATCH] Update TLDRCommands.cs --- tldr-Discord/TLDRCommands.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tldr-Discord/TLDRCommands.cs b/tldr-Discord/TLDRCommands.cs index 18796fa..91be30c 100644 --- a/tldr-Discord/TLDRCommands.cs +++ b/tldr-Discord/TLDRCommands.cs @@ -109,7 +109,7 @@ public async Task GetTLDR(InteractionContext ctx, } var platfromPaths = Directory.GetDirectories(rootDir).Select(x => x.Split('/').LastOrDefault()) - .Where(x => x != "common" || x != platformPref); + .Where(x => x != "common" && x != platformPref); foreach (var platfromPath in platfromPaths) { @@ -137,4 +137,4 @@ private async Task UpdateCache() archive.ExtractToDirectory("tldr-cache", true); } } -} \ No newline at end of file +}