mirror of
https://github.com/Theodor-Springmann-Stiftung/kgpz_web.git
synced 2025-10-29 00:55:32 +00:00
BUGFIX: array initialization syntax in issues.go
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user