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{