Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OCI source: return error if open blob failed #162

Merged
merged 1 commit into from
Nov 14, 2016

Conversation

hustcat
Copy link
Contributor

@hustcat hustcat commented Nov 11, 2016

OCI source: return error if open blob failed. This is needed by here

Signed-off-by: Ye Yin eyniy@qq.com

Copy link
Collaborator

@mtrmac mtrmac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doh, how did we miss that in the initial review?! :)

The fix is OK of course, just please drop the types.go part.

@@ -186,7 +186,7 @@ type Image interface {
// ConfigInfo returns a complete BlobInfo for the separate config object, or a BlobInfo{Digest:""} if there isn't a separate object.
// Note that the config object may not exist in the underlying storage in the return value of UpdatedImage! Use ConfigBlob() below.
ConfigInfo() BlobInfo
// ConfigBlob returns the blob described by ConfigInfo, iff ConfigInfo().Digest != ""; nil otherwise.
// ConfigBlob returns the blob described by ConfigInfo, if ConfigInfo().Digest != ""; nil otherwise.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an unrelated change, and iff is used intentionally ( https://en.wikipedia.org/wiki/If_and_only_if ). Please drop.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, updated it:)

Signed-off-by: Ye Yin <eyniy@qq.com>
@mtrmac
Copy link
Collaborator

mtrmac commented Nov 14, 2016

👍

Approved with PullApprove

@runcom
Copy link
Member

runcom commented Nov 14, 2016

lgtm

Approved with PullApprove

@runcom runcom merged commit f782f3c into containers:master Nov 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants