Skip to content

Commit

Permalink
Chore: lint nits
Browse files Browse the repository at this point in the history
  • Loading branch information
qfox committed Mar 22, 2016
1 parent c1a7f86 commit ece1359
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,10 @@ function quotedSanitizer(_, q, m) {
* @returns {string} - Sanitized string
*/
function htmlSanitizer(_) {
return _.split('').map(function(token, iterator) {
if (iterator === _.length - 1) { return 'x.'}
return token === '\n' ? '\n' : '*';
}).join('');
return _.split('').map(function(token, iterator) {
if (iterator === _.length - 1) {
return 'x.';
}
return token === '\n' ? '\n' : '*';
}).join('');
}

0 comments on commit ece1359

Please sign in to comment.