Endle / fireSeqSearch

Found redundant literal in a logical expression JS-W1043
Anti-pattern
Minor
9 months ago9 months old
Logical expression with a literal operand will always evaluate to the same value
 429                var eventY = clientY - rect.top
 430
 431                var x = Math.floor(eventX * ((canvas.width / rect.width) || 1) / g)
 432                var y = Math.floor(eventY * ((canvas.height / rect.height) || 1) / g) 433
 434                return infoGrid[x][y]
 435            }
Logical expression with a literal operand will always evaluate to the same value
 428                var eventX = clientX - rect.left
 429                var eventY = clientY - rect.top
 430
 431                var x = Math.floor(eventX * ((canvas.width / rect.width) || 1) / g) 432                var y = Math.floor(eventY * ((canvas.height / rect.height) || 1) / g)
 433
 434                return infoGrid[x][y]
Logical expression with a literal operand will always evaluate to the same value
17    /*global browser */
18    let gettingItem = browser.storage.sync.get('debugStr');
19    gettingItem.then((res) => {
20        document.querySelector("#debugStr").value = res.debugStr || 'Not Found';21    });
22
23    let ex = browser.storage.sync.get('ExperimentalLayout');