Skip to content

Commit

Permalink
Making js-lint happy
Browse files Browse the repository at this point in the history
Signed-off-by: Fawzi Abdulfattah <iifawzie@gmail.com>
  • Loading branch information
iifawzi committed Jan 14, 2023
1 parent 9434356 commit 59a5f9b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions js/src/functions.js
Expand Up @@ -3989,10 +3989,13 @@ Functions.getCellValue = function (td) {
* @return {string}
*/
Functions.stringifyJSON = function (json, replacer = null, space = 0) {
let stringifiedJSON = json;
try {
json = JSON.stringify(JSON.parse(json), replacer, space);
} catch (e) { }
return json;
stringifiedJSON = JSON.stringify(JSON.parse(json), replacer, space);
} catch (e) {
// will be returned as it's
}
return stringifiedJSON;
};

/**
Expand Down

0 comments on commit 59a5f9b

Please sign in to comment.