Skip to content

improve walk function on returning result#201

Merged
vbatts merged 1 commit intoopencontainers:masterfrom
xiekeyang:refactor
Aug 31, 2016
Merged

improve walk function on returning result#201
vbatts merged 1 commit intoopencontainers:masterfrom
xiekeyang:refactor

Conversation

@xiekeyang
Copy link
Contributor

  1. walk functions had better to return nil in the case of no-error.
  2. walk functions may not be defined as variable, but as function argument directly.

Signed-off-by: xiekeyang xiekeyang@huawei.com

Signed-off-by: xiekeyang <xiekeyang@huawei.com>
@philips
Copy link
Contributor

philips commented Aug 24, 2016

cc @s-urbaniak can you please review?

@wking
Copy link
Contributor

wking commented Aug 24, 2016

Or we can drop the walker-based approach. #159 has explicit errors for “blob/ref not found”.

@s-urbaniak
Copy link
Collaborator

lgtm, thanks! It introduces a bit of redundancy, but that is fine with me.

@vbatts
Copy link
Member

vbatts commented Aug 30, 2016

LGTM

Approved with PullApprove

1 similar comment
@philips
Copy link
Contributor

philips commented Aug 30, 2016

LGTM

Approved with PullApprove

@vbatts vbatts merged commit 6a9e9d3 into opencontainers:master Aug 31, 2016
@xiekeyang xiekeyang deleted the refactor branch September 1, 2016 02:28
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.

5 participants