DEV: Code style improvements following review

Followup to 05ee1d1aba
This commit is contained in:
David Taylor
2019-02-19 20:02:29 +00:00
parent 34b2157b8c
commit dbcf05d62c
3 changed files with 12 additions and 23 deletions

View File

@@ -154,9 +154,7 @@ const Theme = RestModel.extend({
hasError(target, name) {
return this.get("theme_fields")
.filter(f => {
return f.target === target && (!name || name === f.name);
})
.filter(f => f.target === target && (!name || name === f.name))
.any(f => f.error);
},