Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Support incrementing or decrementing Counters by 0 #65

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

todd
Copy link

@todd todd commented Dec 13, 2016

We need to be able to support incrementing or decrementing a Counter by 0. The current code value || 1 where value = 0 will always evaluate to 1. This changes the behavior to support 0, but still default to 1 when value is undefined or null.

@todd
Copy link
Author

todd commented Dec 13, 2016

Test failures are for very outdated versions of Node failing to install packages on Travis.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant