Permalink
Browse files

unittest: fix formatting

Signed-off-by: Alban Dericbourg <a.dericbourg@criteo.com>
  • Loading branch information...
adericbourg committed Sep 12, 2018
1 parent c4565e5 commit 94c93f7c9ca8733e19a5081183d8bc70ee4a86eb
Showing with 2 additions and 2 deletions.
  1. +2 −2 cmd/ratool/unittest.go
View
@@ -84,7 +84,7 @@ func makeDiff(expected string, actual string) []string {
dmp := diffmatchpatch.New()
diffResult := dmp.DiffMain(trimmedExpected, trimmedActual, false)
for _,r := range diffResult {
for _, r := range diffResult {
if r.Type != diffmatchpatch.DiffEqual {
// Generate patch-style diff
return diff.LineDiffAsLines(trimmedExpected, trimmedActual)
@@ -97,7 +97,7 @@ func makeDiff(expected string, actual string) []string {
func trimTimestamps(s string) string {
lines := strings.Split(s, "\n")
var trimmedLines []string
for _,line := range lines {
for _, line := range lines {
if len(line) > 0 {
lineComponents := strings.Split(line, " ")
lineWithoutTimestamp := lineComponents[0:2]

0 comments on commit 94c93f7

Please sign in to comment.