Skip to content

Commit

Permalink
fixup! code cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Miroslav Bajtoš <oss@bajtos.net>
  • Loading branch information
bajtos committed Mar 8, 2024
1 parent 9fc0d13 commit 81b0c89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/spark.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ export default class Spark {
const { indexerResult, provider } = await queryTheIndex(retrieval.cid)
stats.indexerResult = indexerResult

if (indexerResult !== 'OK' && indexerResult !== 'HTTP_NOT_ADVERTISED') return
const providerFound = indexerResult === 'OK' || indexerResult === 'HTTP_NOT_ADVERTISED'
if (!providerFound) return

stats.protocol = provider.protocol
stats.providerAddress = provider.address
Expand Down

0 comments on commit 81b0c89

Please sign in to comment.