Fixed formatting errors with push.go and push_test.go

This commit is contained in:
Will Ripley 2019-10-29 13:09:27 -05:00
parent a0651436b5
commit c8f089fdbb
2 changed files with 7 additions and 7 deletions

View File

@ -96,7 +96,7 @@ func CheckPushPermissions(opts *config.KanikoOptions) error {
return nil
}
func getDigest(image v1.Image) ([]byte, error){
func getDigest(image v1.Image) ([]byte, error) {
digest, err := image.Digest()
if err != nil {
return nil, err

View File

@ -216,7 +216,7 @@ func TestImageNameDigestFile(t *testing.T) {
t.Fatalf("could not push image: %s", err)
}
want := []byte("gcr.io/foo/bar@" + digest.String() + "\nindex.docker.io/bob/image@" + digest.String() +"\n")
want := []byte("gcr.io/foo/bar@" + digest.String() + "\nindex.docker.io/bob/image@" + digest.String() + "\n")
got, err := ioutil.ReadFile("tmpFile")