Skip to content

Commit fbfe024

Browse files
lishuceoclaude
andcommitted
fix: 修复 CI lint 错误
- 移除未使用的 writeFileSync import - 字符类中的 / 不需要转义 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 349a1d7 commit fbfe024

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/__tests__/lazy-text-files.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*/
1010
// @ts-nocheck — test file
1111
import { describe, it, expect, vi, beforeEach, afterAll } from 'vitest';
12-
import { mkdtempSync, rmSync, writeFileSync, statSync, existsSync, utimesSync } from 'fs';
12+
import { mkdtempSync, rmSync, statSync, existsSync, utimesSync } from 'fs';
1313
import { tmpdir } from 'os';
1414
import { join } from 'path';
1515

@@ -57,7 +57,7 @@ describe('file-cache', () => {
5757
const filePath = await saveMessageFileToCache('om_a/b', 'file_c:d', buf, 'weird.ext-with-bad-stuff!!');
5858
// No slashes/colons leak through; weird ext is dropped
5959
const base = filePath.slice(DOWNLOAD_DIR.length + 1);
60-
expect(base).not.toMatch(/[\/:!]/);
60+
expect(base).not.toMatch(/[/:!]/);
6161
expect(base.endsWith('.ext-with-bad-stuff!!')).toBe(false);
6262
});
6363

0 commit comments

Comments
 (0)