Przeglądaj źródła

feed the linter

Patrick Devine 7 miesięcy temu
rodzic
commit
5da1043680
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      server/imageproc/images.go

+ 1 - 1
server/imageproc/images.go

@@ -229,7 +229,7 @@ func Preprocess(imageData []byte) ([]float32, int, error) {
 	var aspectRatioIndex int
 	var aspectRatioIndex int
 	for n, r := range supportedRatios {
 	for n, r := range supportedRatios {
 		if r == aspectRatio {
 		if r == aspectRatio {
-			aspectRatioIndex = n+1
+			aspectRatioIndex = n + 1
 			break
 			break
 		}
 		}
 	}
 	}