diff options
author | Michael Muré <batolettre@gmail.com> | 2018-09-08 14:17:08 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-09-08 14:17:08 +0200 |
commit | 6d7e79a277fe6f3d137fc76588599c965fa5b2ee (patch) | |
tree | 7a392b6a12041fa8a1178980ba181c9ed5f5313c /bug/bug.go | |
parent | 61a1173ec3f202b9dc71236205de785e2a454791 (diff) | |
download | git-bug-6d7e79a277fe6f3d137fc76588599c965fa5b2ee.tar.gz |
cache: refactor to handle bug changes during Pull
Diffstat (limited to 'bug/bug.go')
-rw-r--r-- | bug/bug.go | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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 |