From d39d03b657376f731fa8a1a32a3b4b85cf5d5199 Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Fri, 27 Oct 2023 16:03:47 +0800 Subject: [PATCH] chore: use gridByteBuffer.String() instead of string(gridByteBuffer.Bytes()) --- monstache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monstache.go b/monstache.go index eee74ea..fb83183 100644 --- a/monstache.go +++ b/monstache.go @@ -1366,7 +1366,7 @@ func (ic *indexClient) addFileContent(op *gtm.Op) (err error) { if err = encoder.Close(); err != nil { return } - op.Data["file"] = string(gridByteBuffer.Bytes()) + op.Data["file"] = gridByteBuffer.String() return }