mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 20:20:49 +00:00
Fix linting issue
This commit is contained in:
parent
ab1aa0dce9
commit
72bf44cb6d
2 changed files with 2 additions and 3 deletions
|
|
@ -131,7 +131,7 @@ export async function runPip(command, args) {
|
|||
if (cleanupConfigPath) {
|
||||
try {
|
||||
await fs.unlink(cleanupConfigPath);
|
||||
} catch (error) {
|
||||
} catch {
|
||||
// Ignore cleanup errors - the file may have already been deleted or is inaccessible
|
||||
// Temp files in os.tmpdir() may eventually be cleaned by the OS, but timing varies by platform
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ describe("runPipCommand environment variable handling", () => {
|
|||
if (options.env.PIP_CONFIG_FILE) {
|
||||
try {
|
||||
capturedConfigContent = await fs.readFile(options.env.PIP_CONFIG_FILE, "utf-8");
|
||||
} catch (e) {
|
||||
} catch {
|
||||
// Ignore if file doesn't exist or can't be read
|
||||
}
|
||||
}
|
||||
|
|
@ -175,7 +175,6 @@ describe("runPipCommand environment variable handling", () => {
|
|||
const res = await runPip("pip3", ["install", "requests"]);
|
||||
assert.strictEqual(res.status, 0);
|
||||
|
||||
const configPath = capturedArgs.options.env.PIP_CONFIG_FILE;
|
||||
assert.ok(capturedConfigContent, "config content should have been captured");
|
||||
const parsed = ini.parse(capturedConfigContent);
|
||||
assert.ok(parsed.global, "[global] should exist after creation");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue