Quellcode durchsuchen

Fix lint errors

Ghassen Rjab vor 8 Jahren
Ursprung
Commit
181af6f250
1 geänderte Dateien mit 3 neuen und 2 gelöschten Zeilen
  1. 3 2
      models/attachments.js

+ 3 - 2
models/attachments.js

@@ -16,9 +16,10 @@ Attachments = new FS.Collection('attachments', {
       beforeWrite: (fileObj) => {
       beforeWrite: (fileObj) => {
         if (!fileObj.isImage()) {
         if (!fileObj.isImage()) {
           return {
           return {
-            type: 'application/octet-stream'
+            type: 'application/octet-stream',
           };
           };
         }
         }
+        return {};
       },
       },
     }),
     }),
   ],
   ],
@@ -70,7 +71,7 @@ if (Meteor.isServer) {
     } else {
     } else {
       // Don't add activity about adding the attachment as the activity
       // Don't add activity about adding the attachment as the activity
       // be imported and delete source field
       // be imported and delete source field
-      Attachments.update( {_id: doc._id} , {$unset: { source : "" } } );
+      Attachments.update( {_id: doc._id}, {$unset: { source : '' } } );
     }
     }
   });
   });