Add parentheses for clarity
This commit is contained in:
parent
7061753d84
commit
26716686ba
|
@ -602,7 +602,7 @@ class PresetManager {
|
||||||
// pass no arguments to delete current preset
|
// pass no arguments to delete current preset
|
||||||
async deletePreset(name) {
|
async deletePreset(name) {
|
||||||
const { preset_names, presets } = this.getPresetList();
|
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();
|
const nameToDelete = name || this.getSelectedPresetName();
|
||||||
|
|
||||||
if (value == 'gui') {
|
if (value == 'gui') {
|
||||||
|
|
Loading…
Reference in New Issue