Change scope of local variable.

This commit is contained in:
Andreea Isac 2020-07-23 09:57:26 -07:00
Родитель 6bc7a7c067
Коммит 07258dab2f
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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();