Skip to content

Commit

Permalink
Update TLDRCommands.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Epictek authored May 5, 2021
1 parent 14f4790 commit 38c4190
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tldr-Discord/TLDRCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -137,4 +137,4 @@ private async Task UpdateCache()
archive.ExtractToDirectory("tldr-cache", true);
}
}
}
}

0 comments on commit 38c4190

Please sign in to comment.