Skip to content

Commit ab1d9b2

Browse files
committed
fix: remove forgotten fmt.Print
1 parent 73e8675 commit ab1d9b2

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

.goreleaser.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ before:
66
- go generate ./...
77
- gometalinter.v2 ./... --vendor --deadline=1m --disable-all --enable=gosec
88
- golangci-lint run --enable-all
9+
- go test -failfast -race ./...
910
builds:
1011
- env:
1112
- CGO_ENABLED=0

avg/distance.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package avg
22

33
import (
44
"context"
5-
"fmt"
65

76
"github.com/AskAlexSharov/imgdiff/loader"
87
"github.com/Nr90/imgsim"
@@ -25,8 +24,6 @@ func Distance(ctx context.Context, fileName1, fileName2 string) (int, error) {
2524
}
2625
ahash2 := imgsim.AverageHash(r2.Img)
2726

28-
fmt.Println(ahash1)
29-
fmt.Println(ahash2)
3027
return imgsim.Distance(ahash1, ahash2) % 64, nil // because 64 bit hash
3128
}
3229

0 commit comments

Comments
 (0)