Closed royvandewater closed 8 years ago
Regarding the identical code that CodeClimate found, I copied the implementation from the handleCallback
function, I'd be happy to pull that out into a shared method and squash that into the pull request.
What's the preferred style for a helper function? I'm imagining something like WemoClient.prototype._parseInsightParams
? I couldn't find a close enough precedent to copy :-)
Yeah, introducing a WemoClient.prototype._parseInsightParams
would be a good thing to go with.
Ok, this should work better then
Good work, thanks for contributing!
Current coverage is 89.96% (diff: 100%)