Skip to content

Commit

Permalink
Merge pull request #199 from nalind/memorysize
Browse files Browse the repository at this point in the history
Don't fake a bad answer from memoryImage.Size()
  • Loading branch information
runcom authored Jan 6, 2017
2 parents b38e42c + 55bcd97 commit ea963d0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions image/memory.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,7 @@ func (i *memoryImage) Close() {

// Size returns the size of the image as stored, if known, or -1 if not.
func (i *memoryImage) Size() (int64, error) {
s, err := i.serialize()
if err != nil {
return -1, err
}
return int64(len(s)), nil
return -1, nil
}

// Manifest is like ImageSource.GetManifest, but the result is cached; it is OK to call this however often you need.
Expand Down

0 comments on commit ea963d0

Please sign in to comment.