Skip to content

Commit 2506eda

Browse files
committed
fix validation
1 parent d884a60 commit 2506eda

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/Config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,10 @@ export class Config {
455455
}
456456

457457
static validatePublicServerURL({ publicServerURL, required = false }) {
458-
if (!publicServerURL && required) {
458+
if (!publicServerURL) {
459+
if (!required) {
460+
return;
461+
}
459462
throw 'The option publicServerURL is required.';
460463
}
461464

0 commit comments

Comments
 (0)