Skip to content

Commit 6f49e2c

Browse files
committedJan 10, 2025··
lint-fix: handle linter issues
1 parent a732275 commit 6f49e2c

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed
 

‎src/queries/catalog/search-query/search-query-format.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ export interface SearchQuery extends BaseQueryFormat {
1616
}
1717

1818
export interface SearchQueryResult extends BaseQueryResult {
19-
// TODO: find a better way to link these queries
2019
readonly results: { ids: NodeId[], search: FlowrSearch }[]
2120
}
2221

@@ -25,7 +24,7 @@ export const SearchQueryDefinition = {
2524
asciiSummarizer: (formatter, _processed, queryResults, result) => {
2625
const out = queryResults as QueryResults<'search'>['search'];
2726
result.push(`Query: ${bold('search', formatter)} (${printAsMs(out['.meta'].timing, 0)})`);
28-
for(const [i, { ids, search }] of out.results.entries()) {
27+
for(const [, { ids, search }] of out.results.entries()) {
2928
result.push(` ╰ [query](${mermaidCodeToUrl(flowrSearchToMermaid(search))}): {${summarizeIdsIfTooLong(formatter, ids)}}`);
3029
}
3130
return true;

‎src/search/flowr-search-builder.ts

-2
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,6 @@ export type FlowrSearchBuilderType<Generator extends GeneratorNames = GeneratorN
100100
type GetElements<F> = F extends FlowrSearchElements<infer Info, infer Elements> ? Elements extends FlowrSearchElement<Info>[] ? Elements : never : never;
101101

102102

103-
// TODO: allow to reuse existing queries including generators (with merge
104-
// TODO: allow to name queries for reuse
105103
/**
106104
* The search query is a combination of a generator and a list of transformers
107105
* and allows this view to pass such queries in a serialized form.

‎src/search/flowr-search-printer.ts

-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ export function flowrSearchToCode(search: FlowrSearchLike): string {
8383

8484
function flowrTransformerToCode(node: FlowrSearchTransformerNode): string {
8585
if(node.name === 'filter') {
86-
// TODO: improved tree support!
8786
const a = node.args.filter;
8887
if(ValidVertexTypes.has(String(a))) {
8988
return `${node.name}(VertexType.${ValidVertexTypeReverse[String(a)]})`;

0 commit comments

Comments
 (0)
Please sign in to comment.