Commit 458a93d3 authored by Kyle Lemons's avatar Kyle Lemons

Remove extraneous newline

parent 9ed35c99
......@@ -38,7 +38,7 @@ func Diff(A, B string) string {
fmt.Fprintf(buf, " %s\n", line)
}
}
return buf.String()
return strings.TrimRight(buf.String(), "\n")
}
// DiffChunks uses an O(D(N+M)) shortest-edit-script algorithm
......
......@@ -44,8 +44,7 @@ func TestDiff(t *testing.T) {
"Trillian",
- "Marvin",
],
}
`,
}`,
},
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment