Fix assert unreachable, remove unused variables (#13753)

Small code cleanup
This commit is contained in:
Félix Malfait
2025-08-08 09:04:45 +02:00
committed by GitHub
parent 8b4b9ef8da
commit 0236f79ccf
105 changed files with 172 additions and 315 deletions
@@ -27,7 +27,7 @@ export class AddPackagesCommand extends CommandRunner {
}
async run(
passedParams: string[],
_passedParams: string[],
// eslint-disable-next-line @typescript-eslint/no-explicit-any
options: Record<string, any>,
): Promise<void> {
@@ -4,7 +4,9 @@ export const main = async (params: {
}): Promise<object> => {
const { a, b } = params;
// Your code here
// Rename the parameters and code below with your own logic
// This is just an example
const message = `Hello, input: ${a} and ${b}`;
return {};
};
return { message };
};
@@ -138,7 +138,7 @@ export class LocalDriver implements ServerlessDriver {
return JSON.stringify(
arg,
(key, value) => {
(_key, value) => {
if (typeof value === 'object' && value !== null) {
if (seen.has(value)) {
return '[Circular]'; // Handle circular references