summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRegis <boudinot.regis@yahoo.com>2017-01-06 15:38:35 -0700
committerRegis <boudinot.regis@yahoo.com>2017-01-06 15:38:35 -0700
commit0e6d3c14a64f09d404f18f27ea212c41295fb5db (patch)
treea0c078ab9b55aab1dfbfe1e40ea510b2a62d812e
parent7eca523e20dc7376c5172088f447d9126c3391e7 (diff)
downloadgitlab-ce-0e6d3c14a64f09d404f18f27ea212c41295fb5db.tar.gz
remove parenthesis around returned objects in pipelines.js.es6
-rw-r--r--app/assets/javascripts/vue_pipelines_index/pipelines.js.es66
1 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/vue_pipelines_index/pipelines.js.es6 b/app/assets/javascripts/vue_pipelines_index/pipelines.js.es6
index 9a8de768aba..3afb6fc236f 100644
--- a/app/assets/javascripts/vue_pipelines_index/pipelines.js.es6
+++ b/app/assets/javascripts/vue_pipelines_index/pipelines.js.es6
@@ -44,15 +44,15 @@
author(pipeline) {
if (!pipeline.commit) return ({ avatar_url: '', web_url: '', username: '' });
if (pipeline.commit.author) return pipeline.commit.author;
- return ({
+ return {
avatar_url: pipeline.commit.author_gravatar_url,
web_url: `mailto:${pipeline.commit.author_email}`,
username: pipeline.commit.author_name,
- });
+ };
},
ref(pipeline) {
const { ref } = pipeline;
- return ({ name: ref.name, tag: ref.tag, ref_url: ref.path });
+ return { name: ref.name, tag: ref.tag, ref_url: ref.path };
},
commitTitle(pipeline) {
return pipeline.commit ? pipeline.commit.title : '';