Fix assert unreachable, remove unused variables (#13753)
Small code cleanup
This commit is contained in:
+1
-1
@@ -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> {
|
||||
|
||||
+5
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user