summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGhassen Rjab <rjab.ghassen@gmail.com>2017-09-02 13:42:23 +0100
committerGhassen Rjab <rjab.ghassen@gmail.com>2017-09-02 13:42:23 +0100
commit181af6f2508405c0459197445f3b02f8368cb490 (patch)
tree5442c2630324a0bc325cf341597e40e96d975b57
parent2e845a51343fccf6f8b6a2b9e1142d771f2cf40d (diff)
downloadwekan-181af6f2508405c0459197445f3b02f8368cb490.tar.gz
wekan-181af6f2508405c0459197445f3b02f8368cb490.tar.bz2
wekan-181af6f2508405c0459197445f3b02f8368cb490.zip
Fix lint errors
-rw-r--r--models/attachments.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/models/attachments.js b/models/attachments.js
index 40adda49..560bec99 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 : '' } } );
}
});