Skip to content

Commit 4333943

Browse files
committed
prettier
1 parent 1ac59ad commit 4333943

File tree

1 file changed

+5
-3
lines changed
  • packages/kit/src/runtime/app/server/remote

1 file changed

+5
-3
lines changed

packages/kit/src/runtime/app/server/remote/query.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ function batch(validate_or_fn, maybe_fn) {
157157
event,
158158
state,
159159
false,
160-
async () => (Promise.all(args.map(validate))),
160+
async () => Promise.all(args.map(validate)),
161161
async (/** @type {any[]} */ input) => {
162162
const get_result = await fn(input);
163163

@@ -170,7 +170,9 @@ function batch(validate_or_fn, maybe_fn) {
170170
type: 'error',
171171
error: await handle_error_and_jsonify(event, state, options, error),
172172
status:
173-
error instanceof HttpError || error instanceof SvelteKitError ? error.status : 500
173+
error instanceof HttpError || error instanceof SvelteKitError
174+
? error.status
175+
: 500
174176
};
175177
}
176178
})
@@ -212,7 +214,7 @@ function batch(validate_or_fn, maybe_fn) {
212214
event,
213215
state,
214216
false,
215-
async () => (Promise.all(batched.args.map(validate))),
217+
async () => Promise.all(batched.args.map(validate)),
216218
async (input) => {
217219
const get_result = await fn(input);
218220

0 commit comments

Comments
 (0)