Skip to content

Commit

Permalink
Fix nlreturn
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilturek committed Aug 15, 2022
1 parent 378c195 commit 49b8033
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions zpl.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ func WithOutputFormat(outputFormat string) option {
for _, allowedOutputFormat := range allowedOutputFormats {
if outputFormat == allowedOutputFormat {
c.outputFormat = outputFormat

return nil
}
}
Expand All @@ -107,6 +108,7 @@ func WithDensity(density int) option {
for _, allowedDensity := range allowedDensities {
if density == allowedDensity {
c.density = density

return nil
}
}
Expand All @@ -118,13 +120,15 @@ func WithDensity(density int) option {
func WithWidth(width int) option {
return func(c *converter) error {
c.width = width

return nil
}
}

func WithHeight(height int) option {
return func(c *converter) error {
c.height = height

return nil
}
}
Expand Down

0 comments on commit 49b8033

Please sign in to comment.