Enable arrow-body-style with as-needed

requireReturnForObjectLiteral for readability

Change-Id: I433937b44757939a31ca92512f0aaf0884f86d27
This commit is contained in:
Tao Zhou
2020-01-10 12:37:45 +01:00
parent 80cfe59582
commit 1c2c9ee45e
95 changed files with 816 additions and 918 deletions

View File

@@ -80,9 +80,10 @@
}
_getHasAvatars() {
return this.$.restAPI.getConfig().then(cfg => {
return Promise.resolve(!!(cfg && cfg.plugin && cfg.plugin.has_avatars));
});
return this.$.restAPI.getConfig()
.then(cfg => Promise.resolve(!!(
cfg && cfg.plugin && cfg.plugin.has_avatars
)));
}
}