Commit addbf88c authored by Phil Hughes's avatar Phil Hughes

Fixed eslint

parent fbf1cc6a
/* eslint-disable class-methods-use-this */
import FilteredSearchContainer from '../filtered_search/container'; import FilteredSearchContainer from '../filtered_search/container';
export default class FilteredSearchBoards extends gl.FilteredSearchManager { export default class FilteredSearchBoards extends gl.FilteredSearchManager {
......
export default (path, extraData) => { export default (path, extraData) => path.split('&').reduce((dataParam, filterParam) => {
return path.split('&').reduce((data, filterParam) => { if (filterParam === '') return dataParam;
if (filterParam === '') return data;
const data = dataParam;
const paramSplit = filterParam.split('='); const paramSplit = filterParam.split('=');
const paramKeyNormalized = paramSplit[0].replace('[]', ''); const paramKeyNormalized = paramSplit[0].replace('[]', '');
const isArray = paramSplit[0].indexOf('[]'); const isArray = paramSplit[0].indexOf('[]');
...@@ -18,5 +18,4 @@ export default (path, extraData) => { ...@@ -18,5 +18,4 @@ export default (path, extraData) => {
} }
return data; return data;
}, extraData); }, extraData);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment