Remove unnecessary defensive code in CommentsService

This commit is contained in:
Benjamin Goering
2017-03-01 14:01:12 +08:00
parent 405dac292c
commit 4b2cc72e1a
+4 -4
View File
@@ -86,8 +86,8 @@ module.exports = class CommentsService {
// tag added
return;
default:
console.warn('CommentsService#addTag modified multiple comments, but it should only have modified 1. '
+ `You may have bad data. Check for multiple comments with id=${id}`);
// this should never happen because no multi parameter and unique index on id
}
});
}
@@ -122,8 +122,8 @@ module.exports = class CommentsService {
// tag removed
return;
default:
console.warn('CommentsService#removeTag modified multiple comments, but it should only have modified 1. '
+ `You may have bad data. Check for multiple comments with id=${id}`);
// this should never happen because no multi parameter and unique index on id
}
});
}