Skip to content

Commit 5e2809d

Browse files
committed
use constants to shorten variable access
1 parent fff0574 commit 5e2809d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

jsEngine/settings/Settings.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,17 @@ export class JsEnginePluginSettingTab extends PluginSettingTab {
2020
}
2121

2222
display(): void {
23-
this.containerEl.empty();
23+
const containerEl = this.containerEl;
24+
const settings = this.plugin.settings;
25+
containerEl.empty();
2426

25-
if (!this.plugin.settings) {
27+
if (!settings) {
2628
return;
2729
}
2830

2931
// this.containerEl.createEl('p', { text: 'Currently Empty, but there will be stuff here later.' });
3032

31-
new Setting(this.containerEl).setName('Startup scripts').addButton(button => {
33+
new Setting(containerEl).setName('Startup scripts').addButton(button => {
3234
button.setButtonText('Manage').onClick(() => {
3335
new StartupScriptsModal(this.plugin).open();
3436
});

0 commit comments

Comments
 (0)