From 49b80335f15210da707ac574c835a24d5a11ad07 Mon Sep 17 00:00:00 2001 From: Kamil Turek Date: Mon, 15 Aug 2022 21:43:49 +0200 Subject: [PATCH] Fix nlreturn --- zpl.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zpl.go b/zpl.go index c4b5a1a..d229a2c 100644 --- a/zpl.go +++ b/zpl.go @@ -94,6 +94,7 @@ func WithOutputFormat(outputFormat string) option { for _, allowedOutputFormat := range allowedOutputFormats { if outputFormat == allowedOutputFormat { c.outputFormat = outputFormat + return nil } } @@ -107,6 +108,7 @@ func WithDensity(density int) option { for _, allowedDensity := range allowedDensities { if density == allowedDensity { c.density = density + return nil } } @@ -118,6 +120,7 @@ func WithDensity(density int) option { func WithWidth(width int) option { return func(c *converter) error { c.width = width + return nil } } @@ -125,6 +128,7 @@ func WithWidth(width int) option { func WithHeight(height int) option { return func(c *converter) error { c.height = height + return nil } }