Make coding style project consistent.

This commit is contained in:
Tom Anthony
2020-07-24 10:41:06 +01:00
parent f454fd76e6
commit 379d181273
2 changed files with 7 additions and 6 deletions

View File

@@ -366,9 +366,8 @@ describe("test custom XSS method", function() {
var html = xss(source, {
onTag: function(_, E, S) {
if (S.isWhite && "a" === _) {
if (S.isClosing)
return "</span></a>";
return "".concat(E, '<span>')
if (S.isClosing) return "</span></a>";
return "".concat(E, '<span>');
}
}
});