Skip to content

Commit

Permalink
Remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
cultpodcasts committed May 9, 2024
1 parent c3d14b5 commit ab466bf
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,6 @@ app.post("/submit", auth0Middleware, async (c) => {
c.header("Access-Control-Allow-Origin", getOrigin(c.req.header("Origin")));
c.header("Access-Control-Allow-Methods", "POST,GET,OPTIONS");

let secureEndpointFailed: Boolean = false;
if (auth0Payload?.permissions && auth0Payload.permissions.includes('submit')) {
let originRequest = new Request(c.req.raw);
const resp = await fetch(c.env.secureSubmitEndpoint, originRequest);
Expand Down

0 comments on commit ab466bf

Please sign in to comment.