mirror of
https://github.com/lancedikson/bowser
synced 2026-02-09 17:40:09 +00:00
Reformat null check src/parser.js
Co-authored-by: Naor Peled <thehecticbyte@gmail.com>
This commit is contained in:
parent
38ca321977
commit
f5e7f89f9b
@ -43,7 +43,7 @@ class Parser {
|
||||
if (typeof skipParsingOrHints === 'boolean') {
|
||||
skipParsing = skipParsingOrHints;
|
||||
this._hints = clientHints;
|
||||
} else if (typeof skipParsingOrHints === 'object' && skipParsingOrHints !== null) {
|
||||
} else if (skipParsingOrHints != null && typeof skipParsingOrHints === 'object') {
|
||||
this._hints = skipParsingOrHints;
|
||||
} else {
|
||||
this._hints = null;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user