Lint ternary statement

pull/21833/head
Jorik Schellekens 2020-04-22 10:29:48 +01:00
parent c99e1de803
commit 54a65441a5
1 changed files with 2 additions and 2 deletions

View File

@ -40,8 +40,8 @@ export class FontWatcher {
};
_setRootFontSize = size => {
let fontSize = this._min_size < size?size:this._min_size;
fontSize = fontSize < this._max_size?fontSize:this._max_size;
let fontSize = this._min_size < size ? size : this._min_size;
fontSize = fontSize < this._max_size ? fontSize : this._max_size;
if (fontSize != size) {
SettingsStore.setValue("font_size", null, fontSize);
}