1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-06-17 22:37:33 +02:00

Clenup some smell

This commit is contained in:
DarthSim
2024-11-22 01:36:58 +03:00
parent cf28d6cd92
commit 750fdddc72
3 changed files with 6 additions and 21 deletions

View File

@ -78,11 +78,7 @@ func prepareWatermark(wm *vips.Image, wmData *imagedata.ImageData, opts *options
}
// We don't want any headers to be copied from the watermark to the image
if err := wm.StripAll(); err != nil {
return err
}
return nil
return wm.StripAll()
}
func applyWatermark(img *vips.Image, wmData *imagedata.ImageData, opts *options.WatermarkOptions, offsetScale float64, framesCount int) error {