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

client: improve constructor checks and docs #1185

Merged
merged 3 commits into from
Jul 6, 2017

Conversation

lucab
Copy link
Contributor

@lucab lucab commented Jul 6, 2017

This introduces and explicit nil-check on the metadata store in
NewNotaryRepository(), to match the docstring and to avoid further
panics at runtime.
It also clarifies the default behavior in case of a nil remote store and of
a nil roundtripper.

Signed-off-by: Luca Bruno luca.bruno@coreos.com

lucab added 3 commits July 6, 2017 15:42
This introduce and explicit nil-check on the metadata store in
`NewNotaryRepository()`, to match the docstring and to avoid further
panics at runtime.
It also clarify the default behavior in case of a nil remote store.

Signed-off-by: Luca Bruno <luca.bruno@coreos.com>
Signed-off-by: Luca Bruno <luca.bruno@coreos.com>
Signed-off-by: Luca Bruno <luca.bruno@coreos.com>
@docker-jenkins
Copy link

Can one of the admins verify this patch?

@riyazdf
Copy link
Contributor

riyazdf commented Jul 6, 2017

jenkins, test this please

Copy link
Contributor

@riyazdf riyazdf left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @lucab!

@endophage
Copy link
Contributor

LGTM thanks!

@riyazdf riyazdf merged commit c251b85 into notaryproject:master Jul 6, 2017
@notaryproject notaryproject deleted a comment from docker-jenkins Jul 7, 2017
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.

4 participants