Skip to content

Commit

Permalink
better handling of missing headers
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgorgo authored Mar 11, 2018
1 parent 57a41cb commit e0f70d8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions validators/tsv.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,14 @@ var TSV = function TSV (file, contents, fileList, callback) {
file: file,
evidence: headers,
line: 1,
character: rows[0].indexOf(headers[0]),
code: 20
}));
}
if ((headers.length <= 1) || (headers[1].trim() !== "duration")){
if ((headers.length == 1) || (headers[1].trim() !== "duration")){
issues.push(new Issue({
file: file,
evidence: headers,
line: 1,
character: rows[0].indexOf(headers[1]),
code: 21
}));
}
Expand Down

0 comments on commit e0f70d8

Please sign in to comment.