Fixed redundant tagged issue reported by SonarQube.

This commit is contained in:
Aditya Toshniwal
2020-06-18 11:14:56 +05:30
committed by Akshay Joshi
parent 5ed1e1e5b6
commit f0490a54b7
22 changed files with 34 additions and 42 deletions

View File

@@ -142,7 +142,7 @@ define([], function() {
value = +value;
exp = +exp;
// If the value is not a number or the exp is not an integer...
if (isNaN(value) || !(typeof exp === 'number' && exp % 1 === 0)) {
if (isNaN(value) || exp % 1 !== 0) {
return NaN;
}
// Shift