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

Update JsonStore #3

Merged
merged 2 commits into from
May 18, 2014
Merged

Update JsonStore #3

merged 2 commits into from
May 18, 2014

Conversation

martinec
Copy link
Contributor

I made some changes to JsonStore. Please review.

martinec added 2 commits May 17, 2014 00:31
get member function returns now a reference to an empty array variable
in order to avoid the notice "Only variable references should be
returned by reference" when returns null if there is no results.
add and set member functions return now a boolean to indicate
whether or not the operation succeeded.
@Peekmo
Copy link
Owner

Peekmo commented May 18, 2014

Hello,

Thank you for your contributing, in fact, returning array instead is better, and the boolean values for add() & set() is a good idea.

I merge and tag it 1.1.0 ;)

Peekmo added a commit that referenced this pull request May 18, 2014
Update JsonStore
- Return empty array instead of null on get()
- set() & add() return a boolean
@Peekmo Peekmo merged commit d7b75d9 into Peekmo:master May 18, 2014
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.

2 participants