refactor: simplify boolean expression

This commit is contained in:
Anna 2020-09-07 15:07:42 -04:00
parent 803938564a
commit b00b405edf
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ namespace HudSwap {
throw new ArgumentNullException(nameof(framework), "Framework cannot be null");
}
if (!(this.plugin.Config.SwapsEnabled && this.plugin.Config.UnderstandsRisks)) {
if (!this.plugin.Config.SwapsEnabled || !this.plugin.Config.UnderstandsRisks) {
return;
}