Add parentheses for clarity

This commit is contained in:
Cohee 2024-10-09 01:31:45 +03:00
parent 7061753d84
commit 26716686ba

View File

@ -602,7 +602,7 @@ class PresetManager {
// pass no arguments to delete current preset
async deletePreset(name) {
const { preset_names, presets } = this.getPresetList();
const value = name ? this.isKeyedApi() ? this.findPreset(name) : name : this.getSelectedPreset();
const value = name ? (this.isKeyedApi() ? this.findPreset(name) : name) : this.getSelectedPreset();
const nameToDelete = name || this.getSelectedPresetName();
if (value == 'gui') {