weareinreach / InReach

Require template literals instead of string concatenation JS-0246
Anti-pattern
Minor
9 days agoa year old
Unexpected string concatenation
 61	const type = endpoint.type === 'mutation' ? 'mutation' : 'query'
 62	const trpcRequest = action(`${type === 'query' ? '❓' : '✍️'} tRPC Request [${endpoint.path.join('.')}]`)
 63
 64	const route = path.join(getBaseUrl(), '/trpc/', endpoint.path[0] + '.' + (endpoint.path[1] as string)) 65
 66	if (typeof endpoint.response === 'function') {
 67		const { response } = endpoint