Skip to content

Commit

Permalink
Return contentwrapper after chaching stream content, instead of setti…
Browse files Browse the repository at this point in the history
…ng the reader of the old content object
  • Loading branch information
Dino Omanovic committed Jul 11, 2016
1 parent 0f72e3e commit 6011bb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion composition/cache_loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (loader *CachingContentLoader) Load(fd *FetchDefinition) (Content, error) {
streamBytes: streamBytes,
}
loader.cache.Set(hash, fd.URL, c.MemorySize(), cw)
return cw, err
return cw, nil
}
} else {
loader.cache.Set(hash, fd.URL, c.MemorySize(), c)
Expand Down

0 comments on commit 6011bb7

Please sign in to comment.