mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Fix type check issues
This commit is contained in:
parent
3d98bb5084
commit
a2fb94d0f0
8 changed files with 60 additions and 4 deletions
|
|
@ -2,6 +2,9 @@ export const pipInstallCommand = "install";
|
|||
export const pipDownloadCommand = "download";
|
||||
export const pipWheelCommand = "wheel";
|
||||
|
||||
/**
|
||||
* @param {string[]} args
|
||||
*/
|
||||
export function getPipCommandForArgs(args) {
|
||||
if (!args || args.length === 0) {
|
||||
return null;
|
||||
|
|
@ -17,6 +20,9 @@ export function getPipCommandForArgs(args) {
|
|||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string[]} args
|
||||
*/
|
||||
export function hasDryRunArg(args) {
|
||||
return args.some((arg) => arg === "--dry-run");
|
||||
return args.some(/** @param {string} arg */ (arg) => arg === "--dry-run");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue