commit f218e22bc310919174288726b03906973d93ac0f
parent e6e725c2ad9b65e0c672f910eb371c9aa74a8d68
Author: breadcat <breadcat@users.noreply.github.com>
Date: Tue, 7 Apr 2026 11:39:13 +0100
Remove blank lines and sort imports
Diffstat:
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/include-cbz.go b/include-cbz.go
@@ -5,9 +5,9 @@ import (
"fmt"
"image"
"image/jpeg"
+ "io"
"log"
"net/http"
- "io"
"os"
"path/filepath"
"sort"
@@ -64,7 +64,6 @@ func generateCBZThumbnail(cbzPath, uploadDir, filename string) error {
}
}
-
// Load the selected images
var images []image.Image
for _, f := range selectedFiles {
@@ -83,7 +82,6 @@ func generateCBZThumbnail(cbzPath, uploadDir, filename string) error {
images = append(images, img)
}
-
if len(images) == 0 {
return fmt.Errorf("failed to decode any images from CBZ")
}