mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-23 13:41:37 +00:00
vm/cli: simplify buffer-related code
gosimple: S1030: should use buf.String() instead of string(buf.Bytes())
This commit is contained in:
parent
bd48454c72
commit
7af67d2a3c
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue