Skip to content

Commit

Permalink
improve code quality
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip-Carneiro committed Oct 11, 2024
1 parent e47155d commit 456f4c2
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/classes/insightsConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ export class InsightsConnection {
isTableView: false,
params: queryParams,
};
window.withProgress(
await window.withProgress(
{
location: ProgressLocation.Notification,
cancellable: false,
Expand All @@ -358,7 +358,7 @@ export class InsightsConnection {

progress.report({ message: "Populating scratchpad..." });

const scratchpadResponse = await axios
return await axios
.post(scratchpadURL.toString(), body, headers)
.then((response: any) => {
if (response.data.error) {
Expand All @@ -384,9 +384,6 @@ export class InsightsConnection {
);
}
});

const p = new Promise<void>((resolve) => resolve());
return p;
},
);
} else {
Expand Down

0 comments on commit 456f4c2

Please sign in to comment.