Skip to content

Commit

Permalink
remove redundant output copying
Browse files Browse the repository at this point in the history
  • Loading branch information
mint-thompson committed Oct 20, 2023
1 parent 2db837f commit 38c37ba
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/DockerManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ export class DockerManager {
.promisify(exec)(runCommand)
.then(() => {
const containerResult: ContainerResult = { pass: true };
if (outputPath && fs.existsSync(containerOutputPath)) {
fs.copySync(containerOutputPath, outputPath);
}
if (fs.existsSync(containerOutputPath)) {
if (outputPath) {
fs.copySync(containerOutputPath, outputPath);
Expand All @@ -65,9 +62,6 @@ export class DockerManager {
return containerResult;
})
.catch(() => {
if (outputPath && fs.existsSync(path.join(outputDir, 'output.txt'))) {
fs.copySync(path.join(outputDir, 'output.txt'), outputPath);
}
if (fs.existsSync(containerOutputPath)) {
if (outputPath) {
fs.copySync(containerOutputPath, outputPath);
Expand Down

0 comments on commit 38c37ba

Please sign in to comment.