5
0
Fork 0
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:
JM Faircloth 2023-06-21 10:32:10 -05:00
parent 51ccd70a32
commit 0a1c2d439f

View file

@ -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
*/
function isJSON(str) {
@ -121,7 +121,7 @@ function isJSON(str) {
return false;
}
return isNaN(str);
return true;
}
module.exports = {