Skip to content

Commit e5305ab

Browse files
committed
Fix lint compatibly with tsfmt
1 parent c2c86ae commit e5305ab

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

extensions/ql-vscode/src/run-queries.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ export class QueryInfo {
122122
): Promise<messages.CompilationMessage[]> {
123123
let compiled: messages.CheckQueryResult | undefined;
124124
try {
125+
const target = this.quickEvalPosition ? {
126+
quickEval: { quickEvalPos: this.quickEvalPosition }
127+
} : { query: {} };
125128
const params: messages.CompileQueryParams = {
126129
compilationOptions: {
127130
computeNoLocationUrls: true,
@@ -137,11 +140,7 @@ export class QueryInfo {
137140
},
138141
queryToCheck: this.program,
139142
resultPath: this.compiledQueryPath,
140-
target: this.quickEvalPosition ? {
141-
quickEval: { quickEvalPos: this.quickEvalPosition }
142-
} : {
143-
query: {}
144-
}
143+
target,
145144
};
146145

147146
compiled = await helpers.withProgress({

0 commit comments

Comments
 (0)