Commit f7970745 authored by Markus Opolka's avatar Markus Opolka
Browse files

Fix lint

parent c93944f0
const flatten = require('flatten') // Flatten Objects
function has (object, key) {
function has (object, key) { // eslint-disable-line no-unused-vars
/*
* Check if object has a key
*/
......@@ -89,7 +89,6 @@ function searchInDocument (document, query) {
}
return document
}
function searchInFeatures (features, query) {
......@@ -152,10 +151,8 @@ module.exports = {
return searchInDocument(obj, query)
},
compare: function (a, b) {
if (a.hits > b.hits)
return -1
if (a.hits < b.hits)
return 1
if (a.hits > b.hits) { return -1 }
if (a.hits < b.hits) { return 1 }
return 0
}
}
Supports Markdown
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