Skip to content

Commit 6fc6f39

Browse files
Shorten check for progress
Co-authored-by: Koen Vlaswinkel <koesie10@users.noreply.github.com>
1 parent de4afae commit 6fc6f39

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

extensions/ql-vscode/src/databaseFetcher.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,11 @@ export async function askForGitHubRepo(
122122
progress?: ProgressCallback,
123123
suggestedValue?: string,
124124
): Promise<string | undefined> {
125-
progress &&
126-
progress({
127-
message: "Choose repository",
128-
step: 1,
129-
maxStep: 2,
130-
});
125+
progress?.({
126+
message: "Choose repository",
127+
step: 1,
128+
maxStep: 2,
129+
});
131130

132131
const options: InputBoxOptions = {
133132
title:

0 commit comments

Comments
 (0)