diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2017-05-31 16:22:12 -0500 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2017-05-31 16:22:12 -0500 |
commit | 912d1317d598b3a230f2c6dd510cb15b51aa851c (patch) | |
tree | 79404db5b4c00a64ecf7b934043ff306b4c7b0eb | |
parent | 720f09f341f2cf3b3b47c6527fcc0746abad7325 (diff) | |
download | gitlab-ce-912d1317d598b3a230f2c6dd510cb15b51aa851c.tar.gz |
Put extra chars length on a constant for readability
-rw-r--r-- | app/assets/javascripts/groups/components/group_item.vue | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/groups/components/group_item.vue b/app/assets/javascripts/groups/components/group_item.vue index 64800a6ae10..a4bf11f3321 100644 --- a/app/assets/javascripts/groups/components/group_item.vue +++ b/app/assets/javascripts/groups/components/group_item.vue @@ -72,8 +72,9 @@ export default { const bfn = this.baseGroup.fullName; const length = bfn.length; const start = gfn.indexOf(bfn); + const extraPrefixChars = 3; - fullPath = gfn.substr(start + length + 3); + fullPath = gfn.substr(start + length + extraPrefixChars); } else { fullPath = this.group.fullName; } |