BUGFIX: array initialization syntax in issues.go

This commit is contained in:
Simon Martens
2025-01-17 14:59:53 +01:00
parent e8e8d9ae00
commit 3aa947277a
3 changed files with 5 additions and 10 deletions

View File

@@ -34,11 +34,7 @@ func (i Issue) Name() string {
}
func (i Issue) Keys() []string {
if len(i.keys) > 0 {
return i.keys
}
res := make([]string, 2)
res := make([]string, 0, 2)
res = append(res, i.Reference())
date := i.Datum.When.String()
@@ -46,8 +42,6 @@ func (i Issue) Keys() []string {
res = append(res, date)
}
i.keys = res
return res
}