Change scope of local variable.
This commit is contained in:
Родитель
6bc7a7c067
Коммит
07258dab2f
|
@ -810,8 +810,8 @@ export function parseLaunchConfigurations(source: string): string[] {
|
|||
|
||||
export function parseLaunchConfigurationsFromBuildLog(): string[] | undefined {
|
||||
let content: string = make.getParseContent();
|
||||
let file: string = make.getParseFile();
|
||||
if (content) {
|
||||
let file: string = make.getParseFile();
|
||||
logger.message(`Parsing launch configurations from: ${file}`);
|
||||
return parseLaunchConfigurations(content);
|
||||
}
|
||||
|
@ -873,8 +873,8 @@ export async function setNewLaunchConfiguration(): Promise<void> {
|
|||
|
||||
export function parseTargetsFromBuildLogOrCache(): string[] | undefined {
|
||||
let content: string = make.getParseContent();
|
||||
let file: string = make.getParseFile();
|
||||
if (content) {
|
||||
let file: string = make.getParseFile();
|
||||
logger.message(`Parsing targets from: ${file}`);
|
||||
let makefileTargets: string[] = parser.parseTargets(content);
|
||||
makefileTargets = makefileTargets.sort();
|
||||
|
|
Загрузка…
Ссылка в новой задаче