mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-11 18:30:36 +08:00
Bump eslint 9 -> 10
This commit is contained in:
+1
-1
@@ -828,7 +828,7 @@ function renderUserAvatar(key: string): string {
|
||||
const sectorIdx = Math.floor(a / ((2 * Math.PI) / petals));
|
||||
if (!sectorGate(a, petals, sectorMask)) continue;
|
||||
|
||||
let inside = false;
|
||||
let inside: boolean;
|
||||
if (shapeModel === "rose") inside = shapeRose(a, petals, tol);
|
||||
else if (shapeModel === "starburst")
|
||||
inside = shapeStarburst(a, petals, softness);
|
||||
|
||||
+1
-1
@@ -223,7 +223,7 @@ export function parseNodeId(
|
||||
): { prefix: string; pubkey: string } | undefined {
|
||||
const match = /^(did:key:)?(z[a-zA-Z0-9]+)$/.exec(nid);
|
||||
if (match) {
|
||||
let hex: Uint8Array | undefined = undefined;
|
||||
let hex: Uint8Array;
|
||||
try {
|
||||
hex = bs58.decode(match[2].substring(1));
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user