Skip to content

Commit ac4b9b8

Browse files
henrymercerCopilot
andcommitted
Return early from parseQueriesFromInput when there are no queries
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent c1e7769 commit ac4b9b8

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎lib/entry-points.js‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/config/db-config.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,11 +504,11 @@ export function parseQueriesFromInput(
504504
value: string | undefined,
505505
repositoryProperty?: RepositoryPropertyName,
506506
): Augmentation<QuerySpec[]> {
507-
const combines = shouldCombine(value);
508507
if (!value) {
509-
return { combines, input: undefined };
508+
return { combines: false, input: undefined };
510509
}
511510

511+
const combines = shouldCombine(value);
512512
const trimmedInput = combines ? value.trim().slice(1).trim() : value.trim();
513513
if (combines && trimmedInput.length === 0) {
514514
throw new ConfigurationError(

0 commit comments

Comments
 (0)