Skip to content

Commit c395794

Browse files
Merge pull request #900 from redhat-developer/msivasubramaniaan-patch-1
Msivasubramaniaan patch 1
2 parents 51edeb3 + 946b27c commit c395794

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/recommendation/openShiftToolkit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export function initializeRecommendation(context: vscode.ExtensionContext, handl
3939
})
4040
);
4141

42-
const isdevfileYAMLOpened = vscode.workspace.workspaceFolders.findIndex((workspace) => isDevfileYAML(workspace.uri)) !== -1;
42+
const isdevfileYAMLOpened = vscode.workspace.workspaceFolders?.findIndex((workspace) => isDevfileYAML(workspace.uri)) > -1;
4343
if (isdevfileYAMLOpened) {
4444
handler.handle(EXTENSION_NAME, RECOMMENDATION_MESSAGE);
4545
}

0 commit comments

Comments
 (0)