From 89d3128d63df62d205b5067259ac4b0894797b5f Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Thu, 16 Nov 2023 16:35:17 +0800 Subject: [PATCH] chore: use out.String() instead of string(out.Bytes()) Signed-off-by: guoguangwu --- issue_test/plugin_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/issue_test/plugin_test.go b/issue_test/plugin_test.go index 542788ba1..df254d561 100644 --- a/issue_test/plugin_test.go +++ b/issue_test/plugin_test.go @@ -44,7 +44,7 @@ func buildPlugin() { Stderr: out, } if err := cmd0.Run(); err != nil { - panic(string(out.Bytes())) + panic(out.String()) } out.Reset() bin, err := exec.LookPath("go") @@ -58,7 +58,7 @@ func buildPlugin() { Stderr: out, } if err := cmd.Run(); err != nil { - panic(string(out.Bytes())) + panic(out.String()) } }