chore: use more standard golangci-lint options

This commit is contained in:
Henrique Dias committed 2025-11-14 16:18:12 +01:00
1 parent 0d973d3aad
commit 9d44932dba
8 files changed
+15 -138

No files matched your search

+3 -3
View File
@@ -124,12 +124,12 @@ func createPreview(imgSvc ImgService, fileCache FileCache,
options []img.Option
)
switch {
case previewSize == PreviewSizeBig:
switch previewSize {
case PreviewSizeBig:
width = 1080
height = 1080
options = append(options, img.WithMode(img.ResizeModeFit), img.WithQuality(img.QualityMedium))
case previewSize == PreviewSizeThumb:
case PreviewSizeThumb:
width = 256
height = 256
options = append(options, img.WithMode(img.ResizeModeFill), img.WithQuality(img.QualityLow), img.WithFormat(img.FormatJpeg))