mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed redundant tagged issue reported by SonarQube.
This commit is contained in:
committed by
Akshay Joshi
parent
5ed1e1e5b6
commit
f0490a54b7
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user