Skip to content

Commit c8fa951

Browse files
author
William Duncan
committed
prefix unused index params with _
1 parent 785c03c commit c8fa951

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gen/source.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,12 @@ export default async (schema: Schema, config: Config, pkg: Package) => {
8686

8787
// get operation namespaces
8888
const namespaces: FlatNamespace[] = [];
89-
for (const [name, namespace] of Object.entries(schema.operations).filter(([name, operation]) => operation.type === "namespace") as [string, Schema.Operation.Namespace][]) {
89+
for (const [name, namespace] of Object.entries(schema.operations).filter(([_name, operation]) => operation.type === "namespace") as [string, Schema.Operation.Namespace][]) {
9090
namespaces.push({name, operations: flatOperations(Object.entries(namespace.operations))});
9191
}
9292

9393
// get operations without namespace
94-
const operations = flatOperations(Object.entries(schema.operations).filter(([name, operation]) => operation.type !== "namespace") as [string, Schema.Operation][]);
94+
const operations = flatOperations(Object.entries(schema.operations).filter(([_name, operation]) => operation.type !== "namespace") as [string, Schema.Operation][]);
9595

9696
// load render main class from `/gen/templates/main.mustache`
9797
const mainTemplate = await fs.readFile(path.join("gen", "templates", "main.mustache"), "utf8");

0 commit comments

Comments
 (0)