BigW Consortium Gitlab

Commit 0e6d3c14 by Regis

remove parenthesis around returned objects in pipelines.js.es6

parent 7eca523e
......@@ -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 : '';
......
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