diff options
author | pburdette <pburdette@gitlab.com> | 2019-09-03 14:29:24 -0400 |
---|---|---|
committer | pburdette <pburdette@gitlab.com> | 2019-09-03 14:29:24 -0400 |
commit | b219718cb5e1e9a2911ccf035218da6295f1fe6a (patch) | |
tree | c036c8b78b359eb77623c8e9ce6a13da82f32692 | |
parent | 01600e4f432d5df682a8ad700bb2c0bcd7be74c6 (diff) | |
download | gitlab-ce-mr-origin-27836.tar.gz |
Fix formatting errors for static analysis failed jobmr-origin-27836
-rw-r--r-- | app/assets/javascripts/pipelines/components/graph/graph_component.vue | 2 | ||||
-rw-r--r-- | app/assets/javascripts/pipelines/mixins/graph_component_mixin.js | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/app/assets/javascripts/pipelines/components/graph/graph_component.vue b/app/assets/javascripts/pipelines/components/graph/graph_component.vue index 6db76107612..27c1b639889 100644 --- a/app/assets/javascripts/pipelines/components/graph/graph_component.vue +++ b/app/assets/javascripts/pipelines/components/graph/graph_component.vue @@ -20,7 +20,7 @@ export default { <stage-column-component v-for="(stage, index) in graph" :key="stage.name" - :class="{ + :class="{ 'append-right-48': shouldAddRightMargin(index), }" :title="capitalizeStageName(stage.name)" diff --git a/app/assets/javascripts/pipelines/mixins/graph_component_mixin.js b/app/assets/javascripts/pipelines/mixins/graph_component_mixin.js index 238b8d02b6a..f383a4b3368 100644 --- a/app/assets/javascripts/pipelines/mixins/graph_component_mixin.js +++ b/app/assets/javascripts/pipelines/mixins/graph_component_mixin.js @@ -42,13 +42,13 @@ export default { }, /** * CSS class is applied: - * - if pipeline graph contains only one stage column component - * + * - if pipeline graph contains only one stage column component + * * @param {number} index - * @returns {boolean} + * @returns {boolean} */ shouldAddRightMargin(index) { - return !(index === this.graph.length - 1) - } + return !(index === this.graph.length - 1); + }, }, }; |