Skip to content
Snippets Groups Projects
Verified Commit 4c432c07 authored by Julia's avatar Julia
Browse files

fix: code style for primitive 14

parent 322b3b67
No related branches found
No related tags found
No related merge requests found
......@@ -157,8 +157,8 @@ export class ApPersonService implements OnModuleInit {
const sharedInboxObject = x.sharedInbox ?? (x.endpoints ? x.endpoints.sharedInbox : undefined);
if (sharedInboxObject != null) {
const sharedInbox = getApId(sharedInboxObject);
if (!(typeof sharedInbox === "string" && sharedInbox.length > 0 && this.utilityService.punyHost(sharedInbox) === expectHost)) {
throw new Error("invalid Actor: wrong shared inbox");
if (!(typeof sharedInbox === 'string' && sharedInbox.length > 0 && this.utilityService.punyHost(sharedInbox) === expectHost)) {
throw new Error('invalid Actor: wrong shared inbox');
}
}
......@@ -168,8 +168,7 @@ export class ApPersonService implements OnModuleInit {
if (this.utilityService.punyHost(collectionUri) !== expectHost) {
throw new Error(`invalid Actor: ${collection} has different host`);
}
}
else if (collectionUri != null) {
} else if (collectionUri != null) {
throw new Error(`invalid Actor: wrong ${collection}`);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment