From 7e97150b8e4664f49e0cdad41e51eb92e12c3306 Mon Sep 17 00:00:00 2001 From: Max Yakunin Date: Wed, 18 Sep 2024 18:28:33 +0300 Subject: [PATCH] Disable G115 check. https://github.com/securego/gosec/issues/1212 --- internal/processor/processor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/processor/processor.go b/internal/processor/processor.go index ae887f8..b2a35aa 100644 --- a/internal/processor/processor.go +++ b/internal/processor/processor.go @@ -58,7 +58,7 @@ func (p *Processor) Resize(data []byte, width, height int) ([]byte, error) { } // Resize image. - resizedImage := resize.Resize(uint(width), uint(height), img, resize.Lanczos3) + resizedImage := resize.Resize(uint(width), uint(height), img, resize.Lanczos3) //nolint:gosec // disable G115 // Convert image to bytes. data, err = imageToBytes(resizedImage)