Remove unused code and address feedback

This commit is contained in:
Jacob Wallraff
2023-03-06 11:33:28 -08:00
parent bde26c84ea
commit 6aaeefb9c2
7 changed files with 6 additions and 9 deletions
+1 -2
View File
@@ -27,7 +27,7 @@ export function clearWorkflowTemplateCache() {
export function fetchOrParseWorkflow(file: File, uri: string): ParseWorkflowResult | undefined {
let result = parsedWorkflowCache.get(uri);
if (!result || !result.value) {
if (!result?.value) {
result = parseWorkflow(file, nullTrace);
if (!result.value) {
return undefined;
@@ -38,7 +38,6 @@ export function fetchOrParseWorkflow(file: File, uri: string): ParseWorkflowResu
}
export async function fetchOrConvertWorkflowTemplate(
file: File,
parsedWorkflow: ParseWorkflowResult,
uri: string,
config?: CompletionConfig,