Skip to content

Commit 3f1377f

Browse files
committed
Fix lint check failure
1 parent 817b41f commit 3f1377f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

dist/setup/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97919,7 +97919,7 @@ async function installPipPackages(pipInstall) {
9791997919
await (0, exec_1.exec)('python', ['-m', 'pip', 'install', ...installArgs]);
9792097920
core.info('Successfully installed pip packages');
9792197921
}
97922-
catch (error) {
97922+
catch {
9792397923
core.setFailed(`Failed to install pip packages from "${pipInstall}". Please verify that the package names, versions, or requirements files provided are correct and installable, that the specified packages and versions can be resolved from PyPI or the configured package index, and that your network connection is stable and allows access to the package index.`);
9792497924
}
9792597925
}

src/setup-python.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ async function installPipPackages(pipInstall: string) {
2929
const installArgs = pipInstall.trim().split(/\s+/);
3030
await exec('python', ['-m', 'pip', 'install', ...installArgs]);
3131
core.info('Successfully installed pip packages');
32-
} catch (error) {
32+
} catch {
3333
core.setFailed(
3434
`Failed to install pip packages from "${pipInstall}". Please verify that the package names, versions, or requirements files provided are correct and installable, that the specified packages and versions can be resolved from PyPI or the configured package index, and that your network connection is stable and allows access to the package index.`
3535
);

0 commit comments

Comments
 (0)