Skip to content

Commit

Permalink
remove unneeded type cast
Browse files Browse the repository at this point in the history
  • Loading branch information
Conduitry committed Aug 26, 2021
1 parent 32f5cce commit a140832
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/kit/src/runtime/server/page/load_node.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,7 @@ export async function load_node({
method: opts.method || 'GET',
headers,
path: relative,
rawBody:
opts.body == null
? null
: new TextEncoder().encode(/** @type {string} */ (opts.body)),
rawBody: opts.body == null ? null : new TextEncoder().encode(opts.body),
query: new URLSearchParams(search)
},
options,
Expand Down

0 comments on commit a140832

Please sign in to comment.