Skip to content

Commit dfd1580

Browse files
committed
Reduce repetition of '' in padding logic
1 parent 277748a commit dfd1580

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

views/index.jade

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -617,8 +617,8 @@ block script
617617
$.getJSON(csv_api_source).done(function (resp) {
618618
return compile_json(resp.values.map(function (row) {
619619
// Pad empty columns with '' so that each row contains exactly 4 items
620-
return ['', '', '', ''].map( function (_, i) {
621-
return typeof row[i] === 'undefined' ? '' : row[i];
620+
return ['', '', '', ''].map( function (space, i) {
621+
return typeof row[i] === 'undefined' ? space : row[i];
622622
});
623623
}));
624624
})

0 commit comments

Comments
 (0)