1
0
mirror of https://github.com/ascribe/onion.git synced 2024-06-28 16:48:04 +02:00

Fix ESLint errors with url utils

This commit is contained in:
Brett Sun 2016-06-13 15:30:29 +02:00
parent 8689585d74
commit 085d0aaa26

View File

@ -6,11 +6,5 @@ export { getCurrentQueryParams, stringifyAsQueryParam, parseQueryParamStr } from
* an API call. * an API call.
*/ */
export function generateOrderingQueryParams(orderBy, orderAsc) { export function generateOrderingQueryParams(orderBy, orderAsc) {
let interpolation = ''; return orderAsc ? orderBy : `-${orderBy}`;
if(!orderAsc) {
interpolation += '-';
}
return interpolation + orderBy;
} }