Skip to content

Commit 30acd2f

Browse files
committed
chore: unnecessary await
1 parent 065e76d commit 30acd2f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/server/routes/query.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default async (fastify: FastifyInstance) => {
3030
query: string
3131
}
3232
}>('/format', async (request, reply) => {
33-
const { data, error } = await Parser.Format(request.body.query)
33+
const { data, error } = Parser.Format(request.body.query)
3434

3535
if (error) {
3636
request.log.error(JSON.stringify({ error, req: request.body }))
@@ -47,7 +47,7 @@ export default async (fastify: FastifyInstance) => {
4747
query: string
4848
}
4949
}>('/parse', async (request, reply) => {
50-
const { data, error } = await Parser.Parse(request.body.query)
50+
const { data, error } = Parser.Parse(request.body.query)
5151

5252
if (error) {
5353
request.log.error(JSON.stringify({ error, req: request.body }))
@@ -64,7 +64,7 @@ export default async (fastify: FastifyInstance) => {
6464
ast: object
6565
}
6666
}>('/deparse', async (request, reply) => {
67-
const { data, error } = await Parser.Deparse(request.body.ast)
67+
const { data, error } = Parser.Deparse(request.body.ast)
6868

6969
if (error) {
7070
request.log.error(JSON.stringify({ error, req: request.body }))

0 commit comments

Comments
 (0)