aboutsummaryrefslogtreecommitdiffstats
path: root/bug/bug.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-09-08 14:17:08 +0200
committerMichael Muré <batolettre@gmail.com>2018-09-08 14:17:08 +0200
commit6d7e79a277fe6f3d137fc76588599c965fa5b2ee (patch)
tree7a392b6a12041fa8a1178980ba181c9ed5f5313c /bug/bug.go
parent61a1173ec3f202b9dc71236205de785e2a454791 (diff)
downloadgit-bug-6d7e79a277fe6f3d137fc76588599c965fa5b2ee.tar.gz
cache: refactor to handle bug changes during Pull
Diffstat (limited to 'bug/bug.go')
-rw-r--r--bug/bug.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/bug/bug.go b/bug/bug.go
index c8b7ae61..ed4717bf 100644
--- a/bug/bug.go
+++ b/bug/bug.go
@@ -571,12 +571,8 @@ func (bug *Bug) Id() string {
// HumanId return the Bug identifier truncated for human consumption
func (bug *Bug) HumanId() string {
- return formatHumanId(bug.Id())
-}
-
-func formatHumanId(id string) string {
format := fmt.Sprintf("%%.%ds", humanIdLength)
- return fmt.Sprintf(format, id)
+ return fmt.Sprintf(format, bug.Id())
}
// CreateLamportTime return the Lamport time of creation