2
0
mirror of https://github.com/frappe/books.git synced 2025-01-10 18:24:40 +00:00

chore: remove redundant length check

This commit is contained in:
18alantom 2022-01-18 12:14:37 +05:30
parent 8f5d71f743
commit a51c4bac64

View File

@ -116,10 +116,7 @@ export default {
return thetas.map((t, i) => [t.i, t.value, starts[i]]);
},
hasNonZeroValues() {
return (
this.thetasAndStarts.length > 0 &&
this.thetasAndStarts.some((t) => this.sectors[t[0]].value !== 0)
);
return this.thetasAndStarts.some((t) => this.sectors[t[0]].value !== 0);
},
},
methods: {