Skip to content

Commit

Permalink
chore: formating
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickskowronekdkfz committed Oct 30, 2024
1 parent 54e35da commit ef908ed
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions packages/lib/src/stores/datarequests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,30 +34,30 @@ export const buildHumanReadableRecursively = (

queryLayer.children.forEach((child: AstElement, index: number): void => {
if (child !== null) {
if ("type" in child && "value" in child && "key" in child) {
if (typeof child.value === "string") {
humanReadableQuery += `(${child.key} ${child.type} ${child.value})`;
if ("type" in child && "value" in child && "key" in child) {
if (typeof child.value === "string") {
humanReadableQuery += `(${child.key} ${child.type} ${child.value})`;
}
if (
typeof child.value === "object" &&
"min" in child.value &&
"max" in child.value
) {
humanReadableQuery += `(${child.key} ${child.type} ${child.value.min} and ${child.value.max})`;
}
}
if (
typeof child.value === "object" &&
"min" in child.value &&
"max" in child.value
) {
humanReadableQuery += `(${child.key} ${child.type} ${child.value.min} and ${child.value.max})`;
}
}

humanReadableQuery = buildHumanReadableRecursively(
child,
humanReadableQuery,
);
humanReadableQuery = buildHumanReadableRecursively(
child,
humanReadableQuery,
);

if (index === queryLayer.children.length - 1) {
}
if (index < queryLayer.children.length - 1) {
humanReadableQuery += ` ${queryLayer.operand} `;
if (index === queryLayer.children.length - 1) {
}
if (index < queryLayer.children.length - 1) {
humanReadableQuery += ` ${queryLayer.operand} `;
}
}
}
});

if (queryLayer.children.length > 1) {
Expand Down

0 comments on commit ef908ed

Please sign in to comment.