Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed issue with null item reported

  • Loading branch information...
commit 872c8e9a2db209a3298fba5c99cb0d7e0d7cbc18 1 parent 11fbc30
Dav Glass davglass authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  yui-lint.js
3  yui-lint.js
View
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.