Skip to content

Commit 18ac502

Browse files
committed
init map
1 parent 856878d commit 18ac502

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

models/issue_reaction.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,8 @@ func (list ReactionList) GetMoreUserCount() int {
259259
// APIFormat returns Raction in api Format
260260
func (list ReactionList) APIFormat() api.CommentReactionList {
261261
result := []*api.CommentReaction{}
262-
users := map[string][]*string{}
263-
counts := map[string]int64{}
262+
users := make(map[string][]*string)
263+
counts := make(map[string]int64)
264264

265265
for _, r := range list {
266266
users[r.Type] = append(users[r.Type], &r.User.LoginName)

0 commit comments

Comments
 (0)