Skip to content

Commit

Permalink
SonarCloud: remove redundant await
Browse files Browse the repository at this point in the history
  • Loading branch information
neilbmclaughlin committed Feb 4, 2025
1 parent 722a75f commit f5b407d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/services/location.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ async function get (locationSlug) {
const filters = {
postFilter: (r) => r.slug === locationSlug
}
return await filteredFind(locationSlug, filters)
return filteredFind(locationSlug, filters)
}

async function find (location) {
const filters = {
preFilter: (r) => r.confidence.toLowerCase() === 'high'
}
return await filteredFind(location, filters)
return filteredFind(location, filters)
}

async function filteredFind (location, filters) {
Expand Down

0 comments on commit f5b407d

Please sign in to comment.