Skip to content

Commit 612a0b0

Browse files
fixup: appease eslint (gene queries)
1 parent 46f5baa commit 612a0b0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

graphql-api/src/queries/gene-queries.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ const searchMultipleIndices = async (
141141
}
142142

143143
const mergeHitsById = (hits: SearchHit[]): SearchHit[] => {
144-
let ids: string[] = []
145-
let idsToHits: Record<string, any> = {}
144+
const ids: string[] = []
145+
const idsToHits: Record<string, any> = {}
146146
hits.forEach((hit) => {
147147
if (idsToHits[hit._id] === undefined) {
148148
ids.push(hit._id)
@@ -153,8 +153,8 @@ const mergeHitsById = (hits: SearchHit[]): SearchHit[] => {
153153
}
154154

155155
const mergeResponsesById = (responses: SearchResponse[]) => {
156-
let ids: string[] = []
157-
let idsToDocs: Record<string, any> = {}
156+
const ids: string[] = []
157+
const idsToDocs: Record<string, any> = {}
158158
responses.forEach((response) =>
159159
response.body.hits.hits.forEach((hit) => {
160160
if (idsToDocs[hit._id] === undefined) {

0 commit comments

Comments
 (0)