lib/micro.js
Function Micro
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Micro(opts) {
var self = {}
self._expiry = opts.expiry
self._que = []
Function submit
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
self.submit = function (action, callback) {
var now = Date.now()
// live result
if (self._res && now - self._last < self._expiry) {