Skip to content

Commit 0f6b148

Browse files
Add .trim instead of complex condition checking
1 parent d36c1c6 commit 0f6b148

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

validators/tsv.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ var TSV = function TSV (file, contents, fileList, callback) {
8585
code: 20
8686
}));
8787
}
88-
if (!(headers[1] == "duration" || headers[1] == "duration\\n")){
88+
if (headers[1].trim() !== "duration"){
8989
issues.push(new Issue({
9090
file: file,
9191
evidence: headers,

0 commit comments

Comments
 (0)