Skip to content

Commit 24eddc0

Browse files
committed
Lint
1 parent a91a3a6 commit 24eddc0

2 files changed

Lines changed: 17 additions & 7 deletions

File tree

examples/rfc-9421-test/app.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,13 @@ export default function createApp(fedi: Fedi, config: AppConfig) {
4242
// Detect signature spec on incoming inbox POSTs before federation handles them.
4343
app.use("*", async (c, next) => {
4444
if (c.req.method === "POST") {
45-
setInboundSigSpec(c.req.header("signature-input") != null
46-
? "rfc9421"
47-
: c.req.header("signature") != null
45+
setInboundSigSpec(
46+
c.req.header("signature-input") != null
47+
? "rfc9421"
48+
: c.req.header("signature") != null
4849
? "draft-cavage"
49-
: null);
50+
: null,
51+
);
5052
}
5153
await next();
5254
});

examples/rfc-9421-test/index.html

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,14 @@
198198
border-radius: 3px;
199199
font-weight: 600;
200200
}
201-
.log-sig.rfc9421 { background: #d4edda; color: #155724; }
202-
.log-sig.draft-cavage { background: #fff3cd; color: #856404; }
201+
.log-sig.rfc9421 {
202+
background: #d4edda;
203+
color: #155724;
204+
}
205+
.log-sig.draft-cavage {
206+
background: #fff3cd;
207+
color: #856404;
208+
}
203209
</style>
204210
</head>
205211
<body>
@@ -433,7 +439,9 @@ <h1>RFC 9421 Field Test</h1>
433439
if (entry.sigSpec) {
434440
const sig = document.createElement("span");
435441
sig.className = `log-sig ${entry.sigSpec}`;
436-
sig.textContent = entry.sigSpec === "rfc9421" ? "RFC 9421" : "draft-cavage";
442+
sig.textContent = entry.sigSpec === "rfc9421"
443+
? "RFC 9421"
444+
: "draft-cavage";
437445
li.append(" ", sig);
438446
}
439447
ul.appendChild(li);

0 commit comments

Comments
 (0)