Skip to content

Commit 17cf140

Browse files
committed
fix(qqbot): add curly braces for eslint(curly) compliance
1 parent 9160990 commit 17cf140

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

extensions/qqbot/src/channel.message-adapter.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ describe("qqbot outbound sanitizeText", () => {
77
it("strips reasoning/thinking tags before delivery", () => {
88
const sanitize = qqbotPlugin.outbound?.sanitizeText;
99
expect(sanitize).toBeDefined();
10-
if (!sanitize) return;
10+
if (!sanitize) {
11+
return;
12+
}
1113

1214
const input1 = "<thinking>internal reasoning</thinking>final answer";
1315
expect(sanitize({ text: input1, payload: { text: input1 } })).toBe("final answer");

0 commit comments

Comments
 (0)