Fix golangci-lint issues

This commit is contained in:
Ben Johnson
2022-01-31 08:54:02 -07:00
parent e84994ad95
commit 5d811f2e39
9 changed files with 47 additions and 112 deletions

View File

@@ -1,10 +1,8 @@
package litestream
import (
"crypto/md5"
"database/sql"
"encoding/binary"
"encoding/hex"
"errors"
"fmt"
"io"
@@ -475,12 +473,6 @@ func isHexChar(ch rune) bool {
return (ch >= '0' && ch <= '9') || (ch >= 'a' && ch <= 'f')
}
// md5hash returns a hex-encoded MD5 hash of b.
func md5hash(b []byte) string {
sum := md5.Sum(b)
return hex.EncodeToString(sum[:])
}
// Tracef is used for low-level tracing.
var Tracef = func(format string, a ...interface{}) {}