Skip to content

Commit 9cb87f0

Browse files
committed
fix(ui): correct trailing comma and whitespace in general tab
Adjust the constructor call and remove stray whitespace in the general tab component to match expected parameter formatting. - Remove an extra blank character left after a conditional block. - Add a missing trailing comma for the plugin argument in the ToggleSetting constructor call to ensure consistent argument separation and avoid potential lint/format issues. These small fixes improve code style consistency and prevent minor syntax/formatting problems in the UI linter component.
1 parent c865d72 commit 9cb87f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ui/linter-components/tab-components/general-tab.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ export class GeneralTab extends Tab {
5353
if (!lintOnActiveFileChangeSetting.getBoolean()) {
5454
displayLintOnActiveFileChangeSetting.hide();
5555
}
56-
56+
5757
tempDiv = this.contentEl.createDiv();
5858
const suppressMessageWhenNoChangeSetting = new ToggleSetting(
5959
tempDiv,
6060
'tabs.general.suppress-message-when-no-change.name' as any,
6161
'tabs.general.suppress-message-when-no-change.description' as any,
6262
'suppressMessageWhenNoChange',
63-
this.plugin
63+
this.plugin,
6464
);
6565
this.addSettingSearchInfoForGeneralSettings(suppressMessageWhenNoChangeSetting);
6666

0 commit comments

Comments
 (0)