ESlint comma-dangle

This commit is contained in:
Peter Jaszkowiak
2017-02-17 19:31:21 -07:00
parent aa64ec7db1
commit bc1d70c126
345 changed files with 1974 additions and 1978 deletions

View File

@@ -12,7 +12,7 @@ pagination.create = function (currentPage, pageCount, queryObj) {
rel: [],
pages: [],
currentPage: 1,
pageCount: 1
pageCount: 1,
};
}
pageCount = parseInt(pageCount, 10);
@@ -62,14 +62,14 @@ pagination.create = function (currentPage, pageCount, queryObj) {
if (currentPage < pageCount) {
data.rel.push({
rel: 'next',
href: '?page=' + next
href: '?page=' + next,
});
}
if (currentPage > 1) {
data.rel.push({
rel: 'prev',
href: '?page=' + previous
href: '?page=' + previous,
});
}
return data;