Endle / fireSeqSearch

Either all code paths should have explicit returns, or none of them JS-0045
Anti-pattern
Minor
9 months agoa year old
Expected to return a value at the end of function 'sendEvent'
1016
1017        /* Send DOM event to all elements. Will stop sending event and return
1018           if the previous one is canceled (for cancelable events). */
1019        var sendEvent = function sendEvent (type, cancelable, details) {1020            if (cancelable) {
1021                return !elements.some(function (el) {
1022                    var event = new CustomEvent(type, {
Function 'getMinFontSize' expected no return value
 151            size--
 152        }
 153
 154        return 0 155    })()
 156
 157    var getItemExtraData = function (item) {
Function 'getMinFontSize' expected no return value
 142            ctx.font = size.toString(10) + 'px sans-serif'
 143            if ((ctx.measureText('\uFF37').width === hanWidth) &&
 144                (ctx.measureText('m').width) === mWidth) {
 145                return (size + 1) 146            }
 147
 148            hanWidth = ctx.measureText('\uFF37').width