Skip to content

Commit

Permalink
chore: remove duplicated validation
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcosSpessatto committed Dec 10, 2024
1 parent c278a33 commit d1b8599
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/homeserver/src/plugins/validateHeaderSignature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,6 @@ export const validateHeaderSignature = async ({
throw new Error("Invalid signature");
}

if (!publickey) {
throw new Error("Public key not found");
}

const [algorithm, version] = origin.key.split(":");

if (!isValidAlgorithm(algorithm)) {
Expand Down

0 comments on commit d1b8599

Please sign in to comment.