1
0
mirror of https://github.com/distribution/distribution synced 2024-11-06 19:35:52 +01:00

Merge pull request #2109 from dmcgowan/oh-circleci-why-you-get-us-here

Fix small lint and unit test issues
This commit is contained in:
Derek McGowan 2016-12-15 23:05:37 -08:00 committed by GitHub
commit 6b998f2755
3 changed files with 4 additions and 2 deletions

@ -79,7 +79,7 @@ func (a *Algorithm) Set(value string) error {
return nil
}
// New returns a new digester for the specified algorithm. If the algorithm
// Digester returns a new digester for the specified algorithm. If the algorithm
// does not have a digester implementation, nil will be returned. This can be
// checked by calling Available before calling New.
func (a Algorithm) Digester() Digester {

@ -61,7 +61,7 @@ var (
ErrDigestUnsupported = fmt.Errorf("unsupported digest algorithm")
)
// ParseDigest parses s and returns the validated digest object. An error will
// Parse parses s and returns the validated digest object. An error will
// be returned if the format is invalid.
func Parse(s string) (Digest, error) {
d := Digest(s)

@ -1,6 +1,8 @@
package reference
import (
_ "crypto/sha256"
_ "crypto/sha512"
"encoding/json"
"strconv"
"strings"