Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed issue with null item reported

  • Loading branch information...
commit 872c8e9a2db209a3298fba5c99cb0d7e0d7cbc18 1 parent 11fbc30
Dav Glass davglass authored

Showing 1 changed file with 3 additions and 0 deletions. Show diff stats Hide diff stats

  1. +3 0  yui-lint.js
3  yui-lint.js
@@ -19,6 +19,9 @@ var filter = function (messages) {
19 19 'use strict';
20 20 messages = messages || [];
21 21 return messages.filter(function (item) {
  22 + if (!item) {
  23 + return false;
  24 + }
22 25 if (/is defined but never used/.test(item.reason)) {
23 26 if (/YUI\.add/.test(item.evidence) || /'Y' is defined/.test(item.evidence)) {
24 27 return false;

0 comments on commit 872c8e9

Please sign in to comment.
Something went wrong with that request. Please try again.