You've already forked go-digest
mirror of
https://github.com/opencontainers/go-digest.git
synced 2025-07-13 21:41:44 +03:00
address some linting issues
- rename "digester" vars that shadowed package-level digester type - rename "hexdigestbytes" to be properly camelCase - use "errors.Is()" instead of straight comparing errors Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@ -19,6 +19,7 @@ import (
|
||||
"bytes"
|
||||
"crypto"
|
||||
"crypto/rand"
|
||||
"errors"
|
||||
"flag"
|
||||
"fmt"
|
||||
"strings"
|
||||
@ -56,7 +57,7 @@ func TestFlagInterface(t *testing.T) {
|
||||
} {
|
||||
t.Run(testcase.Name, func(t *testing.T) {
|
||||
alg = Canonical
|
||||
if err := flagSet.Parse(testcase.Args); err != testcase.Err {
|
||||
if err := flagSet.Parse(testcase.Args); !errors.Is(err, testcase.Err) {
|
||||
if testcase.Err == nil {
|
||||
t.Fatal("unexpected error", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user