From 3c57baec6b62f8cca823dc8a53ce1849c946b20d Mon Sep 17 00:00:00 2001 From: AndrewZuo01 Date: Tue, 12 Dec 2023 16:46:10 +0800 Subject: [PATCH] update user command --- internal/rpc/user/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/rpc/user/user.go b/internal/rpc/user/user.go index 8db54ad4c..a51cb86a6 100644 --- a/internal/rpc/user/user.go +++ b/internal/rpc/user/user.go @@ -376,7 +376,7 @@ func (s *userServer) ProcessUserCommandGet(ctx context.Context, req *pbuser.Proc } // Create a slice to store CommandInfoResp - var commandInfoSlice []*pbuser.CommandInfoResp + commandInfoSlice := []*pbuser.CommandInfoResp{} for _, v := range commands { commandInfoSlice = append(commandInfoSlice, &pbuser.CommandInfoResp{