diff options
author | Oleg Kovalov <iamolegkovalov@gmail.com> | 2020-07-01 20:51:24 +0200 |
---|---|---|
committer | Oleg Kovalov <iamolegkovalov@gmail.com> | 2020-07-01 20:51:24 +0200 |
commit | 27a034c7643768a4ad486a64e8a1b59fa3f8b3b4 (patch) | |
tree | 9d6e25bf60cbd0e1aabbba687f2655867f113c1e /utils/diff | |
parent | 9ac753f4afb36feb1a1c22214c16e853db54aa00 (diff) | |
download | go-git-27a034c7643768a4ad486a64e8a1b59fa3f8b3b4.tar.gz |
fix goreportcard warnings
Diffstat (limited to 'utils/diff')
-rw-r--r-- | utils/diff/diff.go | 2 |
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) |