Skip to content

Commit f294f5b

Browse files
committed
Update vendor-prefix-align.js
Fix for a check if node exists in `_getValName`. It got broken in cd5306.
1 parent 473f019 commit f294f5b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/options/vendor-prefix-align.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ module.exports = {
8484
*/
8585
_getValName: function(node) {
8686
// TODO: Check that `node[3]` is the node we need
87-
if (node[0] !== 'declaration' || !node[3] || !node[3])
87+
if (node[0] !== 'declaration' || !node[3] || !node[3][2])
8888
return;
8989
if (node[3][2][0] === 'ident')
9090
return node[3][2][1];

0 commit comments

Comments
 (0)