aboutsummaryrefslogtreecommitdiff
path: root/src/components/attachment
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2016-11-07 15:04:27 +0100
committerRoger Braun <roger@rogerbraun.net>2016-11-07 15:04:27 +0100
commit93eb6671c6cfa2bf107faf37d4461ede7f3524a3 (patch)
tree5c214b20666d725c72bf52ba2b374a52f1c4ffc8 /src/components/attachment
parentd65112a62557c56e6959d85403b978d919d81496 (diff)
Linting fixes.
Diffstat (limited to 'src/components/attachment')
-rw-r--r--src/components/attachment/attachment.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/components/attachment/attachment.js b/src/components/attachment/attachment.js
index 85d924d0..99958589 100644
--- a/src/components/attachment/attachment.js
+++ b/src/components/attachment/attachment.js
@@ -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