From 3d13f3397e2d8a900dc096b94de79b92d5a0d04e Mon Sep 17 00:00:00 2001 From: guangwu Date: Fri, 17 Nov 2023 16:35:13 +0800 Subject: [PATCH] chore: use out.String() instead of string(out.Bytes()) (#557) 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()) } }