wire: remove extra trim in parsing golden test output (google/go-cloud#185)

This commit is contained in:
Ross Light
2018-07-09 13:30:06 -07:00
parent e1df90c68f
commit 0b7bb585fd

View File

@@ -598,7 +598,7 @@ func parseGoldenOutput(out []byte) (errorStrings []string, wantError bool) {
// Skip past first line.
out = out[len(errorPrefix):]
// Remove any leading or trailing blank lines.
out = bytes.Trim(out[len(errorPrefix):], "\n")
out = bytes.Trim(out, "\n")
// Split lines.
return strings.Split(string(out), "\n"), true
}