Skip to content

Commit

Permalink
fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
eltigerchino committed Nov 13, 2023
1 parent 5f1fce4 commit fc8a03d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/kit/src/core/postbuild/analyse.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ async function analyse({ manifest_path, env }) {
}

Object.keys(mod).forEach((key) => {
// @ts-ignore
if (mod[key] && ENDPOINT_METHODS.has(key)) {
api_methods.push(/** @type {import('types').HttpMethod} */ (key));
const method = /** @type {import('types').HttpMethod} */ (key);
if (mod[method] && ENDPOINT_METHODS.has(method)) {
api_methods.push(method);
} else if (mod.fallback && key === 'fallback') {
api_methods.push('*');
}
Expand Down

0 comments on commit fc8a03d

Please sign in to comment.