mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-07-30 04:52:46 +00:00
Fix pipeline, emoji and syntax (#713)
Fixes #697 Switched to golangci-lint, fixes issues with buildkite and does some linting fixes to appease the new linters.
This commit is contained in:
parent
7a2d5b17b9
commit
bc382bba46
26 changed files with 342 additions and 118 deletions
|
@ -20,9 +20,11 @@ import (
|
|||
"context"
|
||||
"image"
|
||||
"image/draw"
|
||||
|
||||
// Imported for gif codec
|
||||
_ "image/gif"
|
||||
"image/jpeg"
|
||||
|
||||
// Imported for png codec
|
||||
_ "image/png"
|
||||
"os"
|
||||
|
@ -258,9 +260,6 @@ func adjustSize(dst types.Path, img image.Image, w, h int, crop bool, logger *lo
|
|||
out = target
|
||||
} else {
|
||||
out = resize.Thumbnail(uint(w), uint(h), img, resize.Lanczos3)
|
||||
if err != nil {
|
||||
return -1, -1, err
|
||||
}
|
||||
}
|
||||
|
||||
if err = writeFile(out, string(dst)); err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue