aboutsummaryrefslogtreecommitdiffstats
path: root/bug
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-09-09 20:17:12 +0200
committerMichael Muré <batolettre@gmail.com>2018-09-09 20:17:12 +0200
commit30d4bc2121496f333db1a918190339d2bcf22f17 (patch)
treebbffb4216e7dc0e701e621d4df0369825a69ee7a /bug
parent13797c3b77b9e44860b47d381c9451d8ab70b14d (diff)
downloadgit-bug-30d4bc2121496f333db1a918190339d2bcf22f17.tar.gz
fix english grammar
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