From 90601eacae616c3bca46d6dcb643aa94b1fd05c6 Mon Sep 17 00:00:00 2001 From: Maxime Quandalle Date: Sat, 13 Feb 2016 03:12:01 +0100 Subject: Upgrade ESLint to v2 This commit also tweak the code style following backward-incompatible v2 rules. --- models/boards.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'models/boards.js') 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; -- cgit v1.2.3-1-g7c22