From 6e2cb00008cbf09e556b00f87603797fcaa47e09 Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Mon, 16 Apr 2018 05:37:14 -0700 Subject: Depenancy upgrades and movign to dep. (#8630) --- vendor/github.com/disintegration/imaging/convolution.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'vendor/github.com/disintegration/imaging/convolution.go') diff --git a/vendor/github.com/disintegration/imaging/convolution.go b/vendor/github.com/disintegration/imaging/convolution.go index ed7540f05..9e6404dee 100644 --- a/vendor/github.com/disintegration/imaging/convolution.go +++ b/vendor/github.com/disintegration/imaging/convolution.go @@ -58,8 +58,6 @@ func convolve(img image.Image, kernel []float64, options *ConvolveOptions) *imag m = 1 case 25: m = 2 - default: - return dst } i := 0 @@ -72,8 +70,8 @@ func convolve(img image.Image, kernel []float64, options *ConvolveOptions) *imag } } - parallel(h, func(partStart, partEnd int) { - for y := partStart; y < partEnd; y++ { + parallel(0, h, func(ys <-chan int) { + for y := range ys { for x := 0; x < w; x++ { var r, g, b float64 for _, c := range coefs { -- cgit v1.2.3-1-g7c22