vm/cli: simplify buffer-related code

gosimple: S1030: should use buf.String() instead of string(buf.Bytes())
This commit is contained in:
Roman Khimov 2021-05-12 18:42:50 +03:00
parent bd48454c72
commit 7af67d2a3c

View file

@ -589,7 +589,7 @@ func Parse(args []string) (string, error) {
if err := w.Flush(); err != nil {
return "", err
}
return string(buf.Bytes()), nil
return buf.String(), nil
}
func parseArgs(args []string) ([]stackitem.Item, error) {