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

shortened return expressions #53

Merged
merged 3 commits into from
Sep 22, 2017
Merged

Conversation

KhaledElAnsari
Copy link
Contributor

  • Lockr.get got an extra checking for null at the beginning and I removed it since you're doing a check for key data and it will return undefined too in case of null
  • Lockr.smembers I add a one line expression since you just want to check the existing of value object and it's key data so the one line expression will cause less lines in the source files

KhaledElAnsari and others added 2 commits August 2, 2017 01:18
- `Lockr.get` got an extra checking for `null` at the beginning and I removed it since you're doing a check for key `data` and it will return `undefined` too in case of `null`
- `Lockr.smembers` I add a one line expression since you just want to check the existing of `value` object and it's key `data` so the one line expression will cause less lines in the source files
@tsironis
Copy link
Owner

@KhaledElAnsari specs are green, so we can go ahead and merge. Can you remove package-lock.json and lockr.min.js from your pull request first though?

@KhaledElAnsari
Copy link
Contributor Author

@tsironis all good now just did what you asked for

@tsironis tsironis merged commit 2f0de42 into tsironis:master Sep 22, 2017
@tsironis
Copy link
Owner

Thank you!

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