Skip to content

Commit 44c7e06

Browse files
committed
chore: fix formatting
1 parent 2b397cc commit 44c7e06

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/kit/src/runtime/server/page/load_node.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ export async function load_node({
255255
if (!opts.body || typeof opts.body === 'string') {
256256
// the json constructed below is later added to the dom in a script tag
257257
// make sure the used values are safe
258-
const statusNumber = Number(response.status);
259-
if (isNaN(statusNumber)) {
258+
const status_number = Number(response.status);
259+
if (isNaN(status_number)) {
260260
throw new Error(
261261
`response.status is not a number. value: "${
262262
response.status
@@ -267,7 +267,7 @@ export async function load_node({
267267
fetched.push({
268268
url: requested,
269269
body: /** @type {string} */ (opts.body),
270-
json: `{"status":${statusNumber},"statusText":${s(response.statusText)},"headers":${s(headers)},"body":${escape_json_in_html(body)}}`
270+
json: `{"status":${status_number},"statusText":${s(response.statusText)},"headers":${s(headers)},"body":${escape_json_in_html(body)}}`
271271
});
272272
}
273273

0 commit comments

Comments
 (0)