remove parenthesis around returned objects in pipelines.js.es6
This commit is contained in:
parent
7eca523e20
commit
0e6d3c14a6
1 changed files with 3 additions and 3 deletions
|
@ -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 : '';
|
||||
|
|
Loading…
Reference in a new issue