Skip to content

Commit

Permalink
deleted extra verification that I forgot
Browse files Browse the repository at this point in the history
Signed-off-by: wangxiaoxuan273 <[email protected]>
  • Loading branch information
wangxiaoxuan273 committed Jul 28, 2022
1 parent 20d1362 commit c099654
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions registry/remote/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -589,11 +589,6 @@ func ExampleRepository_Fetch_layer() {
}
fmt.Println(string(pulledBlob))

// verify the fetched content
if descriptor.Size != int64(len(pulledBlob)) || descriptor.Digest != digest.FromBytes(pulledBlob) {
panic("wrong content")
}

// option 2: random access, if the remote registry supports
if seeker, ok := rc.(io.ReadSeeker); ok {
offset := int64(8)
Expand Down

0 comments on commit c099654

Please sign in to comment.