Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jonjohnsonjr committed Jan 15, 2020
1 parent 0c04e0d commit 723a68c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/v1/partial/with.go
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ func UncompressedSize(l v1.Layer) (int64, error) {
}

// Otherwise, try to unwrap any partial implementations to see
// if the wrapped struct implements CompressedSize.
// if the wrapped struct implements UncompressedSize.
if ule, ok := l.(*uncompressedLayerExtender); ok {
if wus, ok := ule.UncompressedLayer.(withUncompressedSize); ok {
return wus.UncompressedSize()
Expand All @@ -371,7 +371,7 @@ func UncompressedSize(l v1.Layer) (int64, error) {
}
}

// The layer doens't implement CompressedSize, we need to compute it.
// The layer doesn't implement UncompressedSize, we need to compute it.
rc, err := l.Uncompressed()
if err != nil {
return -1, err
Expand Down

0 comments on commit 723a68c

Please sign in to comment.