Skip to content

Commit 339503a

Browse files
Apply suggested fix to packages/repofetch/src/cli.ts from Copilot Autofix
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
1 parent 09e5aeb commit 339503a

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

packages/repofetch/src/cli.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ import { createClient } from './index.js';
77
import { setToken, deleteToken } from '@nesalia/repofetch-sdk';
88
import { homedir } from 'os';
99
import { join } from 'path';
10-
import { mkdirSync, readFileSync, writeFileSync, existsSync } from 'fs';
11-
import { chmod } from 'fs/promises';
10+
import { mkdirSync, readFileSync, writeFileSync, existsSync, chmodSync } from 'fs';
1211

1312

1413
// Helper type guard functions for SDK errors
@@ -24,7 +23,7 @@ function ensureConfigDir(): void {
2423
const dir = join(homedir(), '.config', 'repofetch');
2524
if (!existsSync(dir)) {
2625
mkdirSync(dir, { recursive: true });
27-
chmod(dir, 0o700); // Owner-only access
26+
chmodSync(dir, 0o700); // Owner-only access
2827
}
2928
}
3029

0 commit comments

Comments
 (0)