Migrate to stylistic

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski
2024-10-16 16:43:07 +01:00
parent d8052e6a73
commit 6c6bf811a6
124 changed files with 239 additions and 196 deletions

View File

@@ -377,7 +377,7 @@ export function tryTransformPermalinkToLocalHref(permalink: string): string {
if (m) {
return m[1];
}
} catch (e) {
} catch {
// Not a valid URI
return permalink;
}
@@ -396,7 +396,7 @@ export function tryTransformPermalinkToLocalHref(permalink: string): string {
permalink = `#/user/${permalinkParts.userId}`;
} // else not a valid permalink for our purposes - do not handle
}
} catch (e) {
} catch {
// Not an href we need to care about
}
@@ -421,7 +421,7 @@ export function getPrimaryPermalinkEntity(permalink: string): string | null {
if (!permalinkParts) return null; // not processable
if (permalinkParts.userId) return permalinkParts.userId;
if (permalinkParts.roomIdOrAlias) return permalinkParts.roomIdOrAlias;
} catch (e) {
} catch {
// no entity - not a permalink
}