From 27a034c7643768a4ad486a64e8a1b59fa3f8b3b4 Mon Sep 17 00:00:00 2001 From: Oleg Kovalov Date: Wed, 1 Jul 2020 20:51:24 +0200 Subject: fix goreportcard warnings --- utils/diff/diff.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils/diff/diff.go') diff --git a/utils/diff/diff.go b/utils/diff/diff.go index 6142ed0..7005494 100644 --- a/utils/diff/diff.go +++ b/utils/diff/diff.go @@ -29,7 +29,7 @@ func Do(src, dst string) (diffs []diffmatchpatch.Diff) { // a bulk delete+insert and the half-baked suboptimal result is returned at once. // The underlying algorithm is Meyers, its complexity is O(N*d) where N is // min(lines(src), lines(dst)) and d is the size of the diff. -func DoWithTimeout (src, dst string, timeout time.Duration) (diffs []diffmatchpatch.Diff) { +func DoWithTimeout(src, dst string, timeout time.Duration) (diffs []diffmatchpatch.Diff) { dmp := diffmatchpatch.New() dmp.DiffTimeout = timeout wSrc, wDst, warray := dmp.DiffLinesToRunes(src, dst) -- cgit