From 181af6f2508405c0459197445f3b02f8368cb490 Mon Sep 17 00:00:00 2001 From: Ghassen Rjab Date: Sat, 2 Sep 2017 13:42:23 +0100 Subject: [PATCH] Fix lint errors --- models/attachments.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/models/attachments.js b/models/attachments.js index 40adda493..560bec991 100644 --- a/models/attachments.js +++ b/models/attachments.js @@ -16,9 +16,10 @@ Attachments = new FS.Collection('attachments', { beforeWrite: (fileObj) => { if (!fileObj.isImage()) { return { - type: 'application/octet-stream' + type: 'application/octet-stream', }; } + return {}; }, }), ], @@ -70,7 +71,7 @@ if (Meteor.isServer) { } else { // Don't add activity about adding the attachment as the activity // be imported and delete source field - Attachments.update( {_id: doc._id} , {$unset: { source : "" } } ); + Attachments.update( {_id: doc._id}, {$unset: { source : '' } } ); } });