Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Jan 14, 2025
1 parent 370a453 commit 4718272
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,4 +145,4 @@ describe('Build Sequence Test', () => {
expect(result.metrics).toBeDefined();
console.log(`Logs saved to: ${result.logFolderPath}`);
}, 300000);
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@ export class BackendCodeHandler implements BuildHandler<string> {
dependencyFile,
);

let modelResponse;
let modelResponse;
try {

Check failure on line 71 in backend/src/build-system/handlers/backend/code-generate/index.ts

View workflow job for this annotation

GitHub Actions / autofix

Unnecessary try/catch wrapper
modelResponse = await context.model.chatSync({
model: 'gpt-4o-mini',
messages: [{ content: backendCodePrompt, role: 'system' }],
});
} catch (error) {
throw error;
throw error;
}

let generatedCode: string;
Expand Down Expand Up @@ -109,5 +109,4 @@ export class BackendCodeHandler implements BuildHandler<string> {
data: generatedCode,
};
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -99,5 +99,4 @@ export class BackendRequirementHandler
},
};
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export class DatabaseRequirementHandler implements BuildHandler<string> {
private readonly logger = new Logger('DatabaseRequirementHandler');

async run(context: BuilderContext): Promise<BuildResult<string>> {

const model = ModelProvider.getInstance();
this.logger.log('Generating Database Requirements Document...');
const projectName =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,5 +186,4 @@ export class DBSchemaHandler implements BuildHandler {
throw error;
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -107,5 +107,4 @@ export class FileArchGenerateHandler implements BuildHandler<string> {
}
return true;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -172,5 +172,4 @@ export class FileGeneratorHandler implements BuildHandler<string> {
await fs.writeFile(filePath, content, 'utf8');
this.logger.log(`File created: ${filePath}`);
}

}

0 comments on commit 4718272

Please sign in to comment.