Skip to content

Reduce nesting in runRemoteQuery#1748

Merged
koesie10 merged 2 commits intomainfrom
koesie10/reduce-nesting-remote-query
Nov 11, 2022
Merged

Reduce nesting in runRemoteQuery#1748
koesie10 merged 2 commits intomainfrom
koesie10/reduce-nesting-remote-query

Conversation

@koesie10
Copy link
Copy Markdown
Member

@koesie10 koesie10 commented Nov 11, 2022

Now that we do not have a dry run mode, we can create and clean up the temporary directory in the same function. This allows us to remove the complete try..finally block inside runRemoteQuery and move it to a much more local spot.

It's easiest to review this by hiding whitespace, this should only show the actual changes.

Checklist

  • CHANGELOG.md has been updated to incorporate all user visible changes made by this pull request.
  • Issues have been created for any UI or other user-facing changes made by this pull request.
  • [Maintainers only] If this pull request makes user-facing changes that require documentation changes, open a corresponding docs pull request in the github/codeql repo and add the ready-for-doc-review label there.

Now that we do not have a dry run mode, we can create and clean up the
temporary directory in the same function. This allows us to remove the
complete try..finally block inside `runRemoteQuery` and move it to a
much more local spot.
@koesie10 koesie10 requested a review from a team as a code owner November 11, 2022 09:46
Base automatically changed from koesie10/remove-dry-run-parameter to main November 11, 2022 10:38
Comment thread extensions/ql-vscode/src/remote-queries/run-remote-query.ts Outdated
@koesie10 koesie10 enabled auto-merge November 11, 2022 13:18
@koesie10 koesie10 merged commit 4eb8c55 into main Nov 11, 2022
@koesie10 koesie10 deleted the koesie10/reduce-nesting-remote-query branch November 11, 2022 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants