Merge branch 'master' into ldap_auth

This commit is contained in:
Daniel
2024-02-22 07:35:53 -08:00
committed by GitHub
11 changed files with 144 additions and 69 deletions

No files matched your search

+1 -1
View File
@@ -160,7 +160,7 @@ func coverScaleAndSave(reader io.Reader, cachePath string, size int) error {
// don't upscale images
width = src.Bounds().Dx()
}
if err = imaging.Save(imaging.Resize(src, width, 0, imaging.Lanczos), cachePath); err != nil {
if err := imaging.Save(imaging.Resize(src, width, 0, imaging.Lanczos), cachePath); err != nil {
return fmt.Errorf("caching %q: %w", cachePath, err)
}
return nil