mirror of
https://github.com/hashicorp/vault-action.git
synced 2025-11-09 16:16:55 +00:00
remove isNaN check
This commit is contained in:
parent
51ccd70a32
commit
0a1c2d439f
1 changed files with 2 additions and 2 deletions
|
|
@ -107,7 +107,7 @@ async function selectData(data, selector) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* isJSON returns true if str parses as valid JSON
|
* isJSON returns true if str parses as a valid JSON string
|
||||||
* @param {string} str
|
* @param {string} str
|
||||||
*/
|
*/
|
||||||
function isJSON(str) {
|
function isJSON(str) {
|
||||||
|
|
@ -121,7 +121,7 @@ function isJSON(str) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return isNaN(str);
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue