Linting fixes.

This commit is contained in:
Roger Braun 2016-11-07 15:04:27 +01:00
parent d65112a625
commit 93eb6671c6
5 changed files with 13 additions and 14 deletions

View file

@ -11,16 +11,16 @@ const Attachment = {
type () {
let type = 'unknown'
if(this.attachment.mimetype.match(/text\/html/)) {
type = 'html';
if (this.attachment.mimetype.match(/text\/html/)) {
type = 'html'
}
if(this.attachment.mimetype.match(/image/)) {
type = 'image';
if (this.attachment.mimetype.match(/image/)) {
type = 'image'
}
if(this.attachment.mimetype.match(/video\/(webm|mp4)/)) {
type = 'video';
if (this.attachment.mimetype.match(/video\/(webm|mp4)/)) {
type = 'video'
};
return type