Skip to content

Commit

Permalink
chore: use out.String() instead of string(out.Bytes()) (#557)
Browse files Browse the repository at this point in the history
Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
  • Loading branch information
testwill committed Nov 17, 2023
1 parent 42f95bf commit 3d13f33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions issue_test/plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -58,7 +58,7 @@ func buildPlugin() {
Stderr: out,
}
if err := cmd.Run(); err != nil {
panic(string(out.Bytes()))
panic(out.String())
}
}

Expand Down

0 comments on commit 3d13f33

Please sign in to comment.