Skip to content

Commit

Permalink
chore(platform-pluv): remove unused required validation (#862)
Browse files Browse the repository at this point in the history
  • Loading branch information
pluvrt authored Jan 21, 2025
1 parent 81cb692 commit 47ab053
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/quick-gorillas-lick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@pluv/platform-pluv": patch
---

Remove unused check for `authorize.required` for `@pluv/platform-pluv`.
3 changes: 0 additions & 3 deletions packages/platform-pluv/src/PluvPlatform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,6 @@ export class PluvPlatform extends AbstractPlatform<
if (!config.authorize) throw new Error("Config `authorize` must be provided to `platformPluv`");
if (!!config.onRoomMessage) throw new Error("Config `onRoomMessage` is not supported on `platformPluv`");
if (!!config.onStorageUpdated) throw new Error("Config `onStorageUpdated` is not supported on `platformPluv`");
if (!!config.authorize.required) {
throw new Error("Config `authorize.required` is not allowed to be false on `platformPluv`");
}

/**
* !HACK
Expand Down

0 comments on commit 47ab053

Please sign in to comment.