From 0bb0fd38b746e5d9a8869122b7c5e1ac73bcde1e Mon Sep 17 00:00:00 2001 From: shoopea Date: Thu, 16 Jan 2020 22:52:48 +0800 Subject: [PATCH] test --- job.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/job.go b/job.go index 7e04bb5..a36b4fa 100644 --- a/job.go +++ b/job.go @@ -1588,12 +1588,12 @@ func jobGWithdraw(j Job) { ref := hex.EncodeToString(out) user := bot.ChatByID(fmt.Sprintf("%d", p.UserID64)) - stock := make(string, 0) + stock := new(string) for _, i := range p.Items { if i.Available > i.Required { - stock = fmt.Sprintf("\n%d x %s", i.Required, i.Name) + stock = fmt.Sprintf("%s\n%d x %s", stock, i.Required, i.Name) } else { - stock = fmt.Sprintf("\n%d x %s", i.Available, i.Name) + stock = fmt.Sprintf("%s\n%d x %s", stock, i.Available, i.Name) } }