eslint --fix: 'expression ? true : false' => '!!expression'

This commit is contained in:
Baptiste Grob
2020-02-04 14:21:32 +01:00
parent 7d1aff6fe2
commit c0759980cc
2 changed files with 2 additions and 2 deletions

View File

@@ -102,7 +102,7 @@ function stringIsUuid(text) {
const matches = text.match(
/\b[0-9a-f]{8}\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\b[0-9a-f]{12}\b/
);
return matches ? true : false;
return !!matches;
}
export function sortNotes({

View File

@@ -193,7 +193,7 @@ class ComponentViewCtrl {
const avoidFlickerTimeout = 7;
this.$timeout(() => {
this.loading = false;
this.issueLoading = desktopError ? true : false;
this.issueLoading = !!desktopError;
this.onLoad && this.onLoad(this.component);
}, avoidFlickerTimeout);
}