BigW Consortium Gitlab

Commit 5cfc2d0c by Filipa Lacerda

Fix eslint

parent de8a6c87
/*= require vue_common_component/commit /*= require vue_common_component/commit
/* globals Vue */ /*= require timeago
/* globals Vue, timeago */
(() => { (() => {
/** /**
...@@ -153,8 +154,7 @@ ...@@ -153,8 +154,7 @@
userImageAltDescription() { userImageAltDescription() {
return `${this.model.last_deployment.user.username}'s avatar'`; return `${this.model.last_deployment.user.username}'s avatar'`;
}, },
/** /**
* If provided, returns the commit tag. * If provided, returns the commit tag.
* *
...@@ -164,6 +164,7 @@ ...@@ -164,6 +164,7 @@
if (this.model.last_deployment && this.model.last_deployment.tag) { if (this.model.last_deployment && this.model.last_deployment.tag) {
return this.model.last_deployment.tag; return this.model.last_deployment.tag;
} }
return undefined;
}, },
/** /**
...@@ -173,10 +174,11 @@ ...@@ -173,10 +174,11 @@
*/ */
commitRef() { commitRef() {
if (this.model.last_deployment && this.model.last_deployment.ref) { if (this.model.last_deployment && this.model.last_deployment.ref) {
return this.model.last_deployment.ref return this.model.last_deployment.ref;
} }
return undefined;
}, },
/** /**
* If provided, returns the commit url. * If provided, returns the commit url.
* *
...@@ -188,6 +190,7 @@ ...@@ -188,6 +190,7 @@
this.model.last_deployment.commit.commit_url) { this.model.last_deployment.commit.commit_url) {
return this.model.last_deployment.commit.commit_url; return this.model.last_deployment.commit.commit_url;
} }
return undefined;
}, },
/** /**
...@@ -199,8 +202,9 @@ ...@@ -199,8 +202,9 @@
if (this.model.last_deployment && if (this.model.last_deployment &&
this.model.last_deployment.commit && this.model.last_deployment.commit &&
this.model.last_deployment.commit.short_id) { this.model.last_deployment.commit.short_id) {
return this.model.last_deployment.commit.short_id return this.model.last_deployment.commit.short_id;
} }
return undefined;
}, },
/** /**
...@@ -208,12 +212,13 @@ ...@@ -208,12 +212,13 @@
* *
* @returns {String|Undefined} * @returns {String|Undefined}
*/ */
commitTitle(){ commitTitle() {
if (this.model.last_deployment && if (this.model.last_deployment &&
this.model.last_deployment.commit && this.model.last_deployment.commit &&
this.model.last_deployment.commit.title) { this.model.last_deployment.commit.title) {
return this.model.last_deployment.commit.title return this.model.last_deployment.commit.title;
} }
return undefined;
}, },
/** /**
...@@ -221,12 +226,14 @@ ...@@ -221,12 +226,14 @@
* *
* @returns {Object|Undefined} * @returns {Object|Undefined}
*/ */
commitAuthor(){ commitAuthor() {
if (this.model.last_deployment && if (this.model.last_deployment &&
this.model.last_deployment.commit && this.model.last_deployment.commit &&
this.model.last_deployment.commit.author) { this.model.last_deployment.commit.author) {
return this.model.last_deployment.commit.author; return this.model.last_deployment.commit.author;
} }
return undefined;
}, },
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment