refactor: simplify boolean expression
This commit is contained in:
parent
803938564a
commit
b00b405edf
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue