aboutsummaryrefslogtreecommitdiffstats
path: root/utils/diff
diff options
context:
space:
mode:
authorOleg Kovalov <iamolegkovalov@gmail.com>2020-07-01 20:51:24 +0200
committerOleg Kovalov <iamolegkovalov@gmail.com>2020-07-01 20:51:24 +0200
commit27a034c7643768a4ad486a64e8a1b59fa3f8b3b4 (patch)
tree9d6e25bf60cbd0e1aabbba687f2655867f113c1e /utils/diff
parent9ac753f4afb36feb1a1c22214c16e853db54aa00 (diff)
downloadgo-git-27a034c7643768a4ad486a64e8a1b59fa3f8b3b4.tar.gz
fix goreportcard warnings
Diffstat (limited to 'utils/diff')
-rw-r--r--utils/diff/diff.go2
1 files changed, 1 insertions, 1 deletions
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)