Skip to content

Commit

Permalink
cleaning up + removing test files
Browse files Browse the repository at this point in the history
  • Loading branch information
mayaraman19 committed Feb 14, 2024
1 parent 0078d00 commit c53a2fb
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 33 deletions.
25 changes: 0 additions & 25 deletions src/commands/src/helpers/axios-test.ts

This file was deleted.

6 changes: 0 additions & 6 deletions src/commands/src/helpers/dependency-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,7 @@ export async function downloadBuildDependencies(
const res = await axios.get(dep.url, { timeout: 10000, responseType: 'stream' });
const write = fs.createWriteStream(buildPath);
res.data.pipe(write);
//TODO: try to get the promise version of this?
await finished(write);

// finished(write, async (err) => {
// if (err) return `ERROR! Could not download ${dep.url} into ${buildPath}. ${err}`;
// else return `Downloading ${dep.url} into ${buildPath}`;
// });
return `Downloading ${dep.url} into ${buildPath}`;
} catch (error) {
return `ERROR! Could not download ${dep.url} into ${buildPath}. ${error}`;
Expand Down
2 changes: 0 additions & 2 deletions src/job/jobHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import { MONOREPO_NAME } from '../monorepo/utils/monorepo-constants';
import { nextGenHtml, nextGenParse, oasPageBuild, persistenceModule, prepareBuild } from '../commands';
import { downloadBuildDependencies } from '../commands/src/helpers/dependency-helpers';
import { CliCommandResponse } from '../commands/src/helpers';
import { testAxios } from '../commands/src/helpers/axios-test';
require('fs');

export abstract class JobHandler {
Expand Down Expand Up @@ -218,7 +217,6 @@ export abstract class JobHandler {
await this._logger.save(this._currJob._id, `${commands.join('\n')}`);
const err = commands.find((element) => element.includes('ERROR'));
if (err) throw new Error('Could not download some dependencies');
await testAxios(repoName, directory);
}

@throwIfJobInterupted()
Expand Down

0 comments on commit c53a2fb

Please sign in to comment.