From 93eb6671c6cfa2bf107faf37d4461ede7f3524a3 Mon Sep 17 00:00:00 2001
From: Roger Braun <roger@rogerbraun.net>
Date: Mon, 7 Nov 2016 15:04:27 +0100
Subject: [PATCH] Linting fixes.

---
 src/components/attachment/attachment.js             | 12 ++++++------
 src/components/favorite_button/favorite_button.js   |  4 ++--
 src/components/media_upload/media_upload.js         |  6 +++---
 src/components/post_status_form/post_status_form.js |  3 +--
 src/components/timeline/timeline.js                 |  2 +-
 5 files changed, 13 insertions(+), 14 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
diff --git a/src/components/favorite_button/favorite_button.js b/src/components/favorite_button/favorite_button.js
index 0a8843ea..4ee3890f 100644
--- a/src/components/favorite_button/favorite_button.js
+++ b/src/components/favorite_button/favorite_button.js
@@ -3,9 +3,9 @@ const FavoriteButton = {
   methods: {
     favorite () {
       if (!this.status.favorited) {
-        this.$store.dispatch('favorite', { id: this.status.id})
+        this.$store.dispatch('favorite', {id: this.status.id})
       } else {
-        this.$store.dispatch('unfavorite', { id: this.status.id})
+        this.$store.dispatch('unfavorite', {id: this.status.id})
       }
     }
   },
diff --git a/src/components/media_upload/media_upload.js b/src/components/media_upload/media_upload.js
index c24c71e9..8ae86a8d 100644
--- a/src/components/media_upload/media_upload.js
+++ b/src/components/media_upload/media_upload.js
@@ -8,9 +8,9 @@ const mediaUpload = {
     const self = this
 
     input.addEventListener('change', ({target}) => {
-      const file = target.files[0];
-      const formData = new FormData();
-      formData.append('media', file);
+      const file = target.files[0]
+      const formData = new FormData()
+      formData.append('media', file)
       statusPosterService.uploadMedia({ store, formData })
         .then((fileData) => {
           self.$emit('uploaded', fileData)
diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js
index 30a7cd40..f764a01b 100644
--- a/src/components/post_status_form/post_status_form.js
+++ b/src/components/post_status_form/post_status_form.js
@@ -1,10 +1,9 @@
 import statusPoster from '../../services/status_poster/status_poster.service.js'
 import MediaUpload from '../media_upload/media_upload.vue'
 
-import { reject, map, uniqBy } from 'lodash';
+import { reject, map, uniqBy } from 'lodash'
 
 const buildMentionsString = ({user, attentions}, currentUser) => {
-
   let allAttentions = [...attentions]
 
   allAttentions.unshift(user)
diff --git a/src/components/timeline/timeline.js b/src/components/timeline/timeline.js
index e0c75d76..4ebc383f 100644
--- a/src/components/timeline/timeline.js
+++ b/src/components/timeline/timeline.js
@@ -27,7 +27,7 @@ const Timeline = {
     fetchOlderStatuses () {
       const store = this.$store
       const credentials = store.state.users.currentUser.credentials
-      store.commit('setLoading', { timeline: this.timelineName, value: true });
+      store.commit('setLoading', { timeline: this.timelineName, value: true })
       timelineFetcher.fetchAndUpdate({
         store,
         credentials,