Skip to content

Commit 7672274

Browse files
committed
use constants to shorten variable access
1 parent 93c6681 commit 7672274

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
@@ -22,15 +22,17 @@ export class JsEnginePluginSettingTab extends PluginSettingTab {
2222
}
2323

2424
display(): void {
25-
this.containerEl.empty();
25+
const { containerEl } = this;
26+
const { settings } = this.plugin;
27+
containerEl.empty();
2628

27-
if (!this.plugin.settings) {
29+
if (!settings) {
2830
return;
2931
}
3032

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

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

0 commit comments

Comments
 (0)