node-statsd
node-statsd copied to clipboard
Support incrementing or decrementing Counters by 0
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
.
Test failures are for very outdated versions of Node failing to install packages on Travis.