Skip to content

Commit bfa9b04

Browse files
test(index): add istanbul ignore else
1 parent cc443ca commit bfa9b04

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export async function run() {
2424
let binaryPath = find(toolName, cliVersion);
2525
const isCached = Boolean(binaryPath);
2626

27+
/* istanbul ignore else */
2728
if (!isCached) {
2829
// Download the specific version of the tool (e.g., tarball/zipball)
2930
const download = getDownloadObject(cliVersion);
@@ -41,6 +42,7 @@ export async function run() {
4142
binaryPath = getBinaryPath(binaryDirectory, cliName);
4243

4344
// Rename the binary
45+
/* istanbul ignore else */
4446
if (cliName !== DEFAULT_NAME) {
4547
await exec('mv', [
4648
getBinaryPath(binaryDirectory, DEFAULT_NAME),
@@ -53,6 +55,7 @@ export async function run() {
5355
addPath(path.dirname(binaryPath));
5456

5557
// Cache the tool
58+
/* istanbul ignore else */
5659
if (!isCached) {
5760
await cacheFile(binaryPath, cliName, toolName, cliVersion);
5861
}

0 commit comments

Comments
 (0)