Skip to content

Commit

Permalink
fixed linting
Browse files Browse the repository at this point in the history
  • Loading branch information
vzaidman committed Mar 12, 2017
1 parent 9d7bce4 commit 07aaf4e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/sax.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,14 @@
parser.bufferCheckPosition = sax.MAX_BUFFER_LENGTH
parser.opt = opt || {}

if(!parser.opt.hasOwnProperty('looseCasing')){
if (!parser.opt.hasOwnProperty('looseCasing')) {
parser.opt.looseCasing = 'upper'
}
parser.looseCase = looseCaseMapping[parser.opt.looseCasing]

// backwards support for deprecated "lowercase" and "lowercasetags" options
if(parser.opt.hasOwnProperty('lowercase') || parser.opt.hasOwnProperty('lowercasetags')){
parser.looseCase = (parser.opt.lowercase || parser.opt.lowercasetags) ?
'toLowerCase' : 'toUpperCase'
if (parser.opt.hasOwnProperty('lowercase') || parser.opt.hasOwnProperty('lowercasetags')) {
parser.looseCase = (parser.opt.lowercase || parser.opt.lowercasetags) ? 'toLowerCase' : 'toUpperCase'
}

parser.tags = []
Expand Down

0 comments on commit 07aaf4e

Please sign in to comment.