Skip to content

Commit

Permalink
chore: apply ai suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
rmrt1n committed Oct 25, 2024
1 parent e965b73 commit 85354a4
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/lib/query-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,13 @@ interface Receipt {
startTick: number
endTick: number
receipts:
| {
txHash: string
tick: number
result: object | null
errors: string[] | null
}[]
| null
| {
txHash: string
tick: number
result: object | null
errors: string[] | null
}[]
| null
}

export const gameMessageQueryOptions = ({
Expand Down Expand Up @@ -270,7 +270,8 @@ function getDurationMicroSeconds(lookback: string) {
export const jaegerSearchQueryOptions = ({ jaegerUrl, options }: JaegerQueryOptionProps) => ({
queryKey: ['jaegerSearch'],
queryFn: () => {
if (!options) return // unreachable
// jaegerSearchQueryOptions must be called with options
if (!options) return
const url = new URL(routeJaegerSearch, jaegerUrl)

url.searchParams.append('service', options.service)
Expand Down

0 comments on commit 85354a4

Please sign in to comment.