diff options
author | Maxime Quandalle <maxime@quandalle.com> | 2016-02-13 03:12:01 +0100 |
---|---|---|
committer | Maxime Quandalle <maxime@quandalle.com> | 2016-03-17 16:26:14 +0100 |
commit | 90601eacae616c3bca46d6dcb643aa94b1fd05c6 (patch) | |
tree | 764e2aa0b91e392cdb1ef9faa92ff6c9ffe7efd1 /models/boards.js | |
parent | b8aefedcc3dcaf62d1b45f1e4ffb1dc4fdc55f63 (diff) | |
download | wekan-90601eacae616c3bca46d6dcb643aa94b1fd05c6.tar.gz wekan-90601eacae616c3bca46d6dcb643aa94b1fd05c6.tar.bz2 wekan-90601eacae616c3bca46d6dcb643aa94b1fd05c6.zip |
Upgrade ESLint to v2
This commit also tweak the code style following backward-incompatible v2 rules.
Diffstat (limited to 'models/boards.js')
-rw-r--r-- | models/boards.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/models/boards.js b/models/boards.js index 64d6df62..52272cce 100644 --- a/models/boards.js +++ b/models/boards.js @@ -201,6 +201,7 @@ Boards.mutations({ const _id = Random.id(6); return { $push: {labels: { _id, name, color }}}; } + return {}; }, editLabel(labelId, name, color) { @@ -213,6 +214,7 @@ Boards.mutations({ }, }; } + return {}; }, removeLabel(labelId) { @@ -397,8 +399,9 @@ if (Meteor.isServer) { if (!_.contains(fieldNames, 'labels') || !modifier.$pull || !modifier.$pull.labels || - !modifier.$pull.labels._id) + !modifier.$pull.labels._id) { return; + } const removedLabelId = modifier.$pull.labels._id; Cards.update( @@ -414,8 +417,9 @@ if (Meteor.isServer) { // Add a new activity if we add or remove a member to the board Boards.after.update((userId, doc, fieldNames, modifier) => { - if (!_.contains(fieldNames, 'members')) + if (!_.contains(fieldNames, 'members')) { return; + } let memberId; |