Skip to content
This repository was archived by the owner on Feb 9, 2018. It is now read-only.

Commit 64b654a

Browse files
committed
Change if to elseif
1 parent f5d3afe commit 64b654a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/css-unparsed-value.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@
5353
function CSSUnparsedValue(values) {
5454
if (values == undefined) {
5555
values = [];
56-
}
57-
if (!Array.isArray(values)) {
56+
} else if (!Array.isArray(values)) {
5857
throw new TypeError('CSSUnparsedValue should be an array of string or CSSVariableReferenceValue');
5958
}
6059
for (var i = 0; i < values.length; i++) {

0 commit comments

Comments
 (0)