Skip to content

Conversation

@robert-zaremba
Copy link
Contributor

Commits messages are quite descriptive.

gocheck package has been moved to github, and it should be (according to it's author) referenced by gopkg.in/check.v1

In last commit, I've changed a bit behaviour of cursor.One. For me it was'nt clear that I need to call IsNil every time I'm using One. Since One looks to be more higher level, and already uses ErrEmptyResult then it's logical that it should also support empty results as is.

Robert Zaremba added 3 commits August 12, 2014 11:04
gocheck package moved to github and should be referenced as gopkg.in/check.v1
https://github.com/go-check/check

Update wercker to use gopkg.in/check.v1
`cursor.One` is a higher level funcion to get a single element from the result
 set. It already returns `ErrEmptyResult`, so to be consistent with a
function responsibility it should also return that error even when user
didn't check `IsNil` before performing `One`.
@dancannon
Copy link
Collaborator

Thanks for these changes, I agree the IsNil change was needed for One

dancannon added a commit that referenced this pull request Aug 12, 2014
  Documentation update, use correct import fo go-check and resolve IsNil issue in One
@dancannon dancannon merged commit 7121b08 into rethinkdb:master Aug 12, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants