]> git.ipfire.org Git - thirdparty/moment.git/commit
[misc] Remove unused variable defaults (#4959)
authorRonny Roeller <ronnyroeller@users.noreply.github.com>
Mon, 21 Jan 2019 20:35:24 +0000 (21:35 +0100)
committerKunal Marwaha <marwahaha@berkeley.edu>
Mon, 21 Jan 2019 20:35:24 +0000 (12:35 -0800)
commit01ae8ca220d1ff84d3d26491eadea1afc5780d2b
tree4f8f77cc171d9123c3b22f976ffadfb14ccdea37
parent24e55dfe72a0f462a1564ed6f827dfd2df24b526
[misc] Remove unused variable defaults (#4959)

The default values of the initialized fields are overwritten in the following lines. This means that the code never relies on the variable defaults.
Removing the unused defaults makes the code easier to read.
src/lib/duration/create.js