Skip to content

Commit 4a64138

Browse files
author
Alberto Iannaccone
committed
remove useless async
1 parent ca22d78 commit 4a64138

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

arduino-ide-extension/src/browser/contributions/interface-scale.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,12 @@ export class InterfaceScale extends Contribution {
120120
this.mainMenuManager.update();
121121
}
122122

123-
private async updateFontSize(mode: 'increase' | 'decrease'): Promise<void> {
123+
private updateFontSize(mode: 'increase' | 'decrease'): void {
124124
if (this.currentSettings.autoScaleInterface) {
125125
mode === 'increase'
126126
? (this.currentSettings.interfaceScale += InterfaceScale.ZoomLevel.STEP)
127-
: (this.currentSettings.interfaceScale -= InterfaceScale.ZoomLevel.STEP);
127+
: (this.currentSettings.interfaceScale -=
128+
InterfaceScale.ZoomLevel.STEP);
128129
} else {
129130
mode === 'increase'
130131
? (this.currentSettings.editorFontSize += InterfaceScale.FontSize.STEP)

0 commit comments

Comments
 (0)