Skip to content

Commit ade70d8

Browse files
committed
renamed ContentType to MediaType
1 parent 3a5291e commit ade70d8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: distribution/manifest.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -368,8 +368,8 @@ func pbkdf2Aes256GcmEncrypt(
368368
err error,
369369
) {
370370
// make the config
371-
var dec *crypto.DeCrypto
372-
dec, err = crypto.NewDecrypto(opts)
371+
//var dec *crypto.DeCrypto
372+
dec, err := crypto.NewDecrypto(opts)
373373
if err != nil {
374374
return
375375
}

Diff for: distribution/manifest_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func TestImageMock(t *testing.T) {
100100
mockLayer,
101101
*opts,
102102
passphrase,
103-
"",
103+
fmt.Sprintf("layer is of wrong type: %T", new(mockBlob)),
104104
fmt.Sprintf("config is of wrong type: %T", manifest.Config),
105105
fmt.Sprintf("layer is of wrong type: %T", new(mockBlob)),
106106
},

0 commit comments

Comments
 (0)