Merge pull request #68 from mtrmac/cleanups

Random cleanups
This commit is contained in:
Antonio Murdaca 2016-05-21 10:51:42 +02:00
commit 7522e6c99c
2 changed files with 1 additions and 5 deletions

View File

@ -8,9 +8,7 @@ func parseDockerImageName(img string) (reference.Named, string, error) {
if err != nil {
return nil, "", err
}
if reference.IsNameOnly(ref) {
ref = reference.WithDefaultTag(ref)
}
ref = reference.WithDefaultTag(ref)
var tag string
switch x := ref.(type) {
case reference.Canonical:

View File

@ -59,8 +59,6 @@ func ConsumeAndLogOutput(c *check.C, id string, f io.ReadCloser, err error) {
func (s *SigningSuite) SetUpTest(c *check.C) {
_, err := exec.LookPath(skopeoBinary)
c.Assert(err, check.IsNil)
_, err = exec.LookPath(skopeoBinary)
c.Assert(err, check.IsNil)
s.gpgHome, err = ioutil.TempDir("", "skopeo-gpg")
c.Assert(err, check.IsNil)