aboutsummaryrefslogtreecommitdiffstats
path: root/bug
diff options
context:
space:
mode:
Diffstat (limited to 'bug')
-rw-r--r--bug/bug.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/bug/bug.go b/bug/bug.go
index ed4717bf..e0c671c6 100644
--- a/bug/bug.go
+++ b/bug/bug.go
@@ -106,8 +106,8 @@ func readBug(repo repository.Repo, ref string) (*Bug, error) {
return nil, err
}
- refSplitted := strings.Split(ref, "/")
- id := refSplitted[len(refSplitted)-1]
+ refSplit := strings.Split(ref, "/")
+ id := refSplit[len(refSplit)-1]
if len(id) != idLength {
return nil, fmt.Errorf("Invalid ref length")
@@ -269,8 +269,8 @@ func refsToIds(refs []string) []string {
ids := make([]string, len(refs))
for i, ref := range refs {
- splitted := strings.Split(ref, "/")
- ids[i] = splitted[len(splitted)-1]
+ split := strings.Split(ref, "/")
+ ids[i] = split[len(split)-1]
}
return ids