Directly convert buffer to string (#492)

Using `buf.String()` instead of `fmt.Sprintf` is simpler
pull/491/head^2
Sebastian Ehmann 5 years ago committed by Roberto Rojas
parent d7b5422e8a
commit b9be7daa4a

@ -239,7 +239,7 @@ func executeJSONPath(path string, jsonInterface interface{}) (string, error) {
if err != nil {
return "", err
}
jsonpathResult := fmt.Sprintf("%s", buf)
jsonpathResult := buf.String()
return jsonpathResult, nil
}

Loading…
Cancel
Save