We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 856878d commit 18ac502Copy full SHA for 18ac502
models/issue_reaction.go
@@ -259,8 +259,8 @@ func (list ReactionList) GetMoreUserCount() int {
259
// APIFormat returns Raction in api Format
260
func (list ReactionList) APIFormat() api.CommentReactionList {
261
result := []*api.CommentReaction{}
262
- users := map[string][]*string{}
263
- counts := map[string]int64{}
+ users := make(map[string][]*string)
+ counts := make(map[string]int64)
264
265
for _, r := range list {
266
users[r.Type] = append(users[r.Type], &r.User.LoginName)
0 commit comments