Browse files

Fixed issue with null item reported

  • Loading branch information...
1 parent 11fbc30 commit 872c8e9a2db209a3298fba5c99cb0d7e0d7cbc18 @davglass davglass committed Oct 1, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 yui-lint.js
View
3 yui-lint.js
@@ -19,6 +19,9 @@ var filter = function (messages) {
'use strict';
messages = messages || [];
return messages.filter(function (item) {
+ if (!item) {
+ return false;
+ }
if (/is defined but never used/.test(item.reason)) {
if (/YUI\.add/.test(item.evidence) || /'Y' is defined/.test(item.evidence)) {
return false;

0 comments on commit 872c8e9

Please sign in to comment.