Skip to content

Commit 01a4f2e

Browse files
author
Noam Kfir
committed
Rename and add type info for clarity
1 parent 0016d82 commit 01a4f2e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/services/EditorHelper.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,13 +156,13 @@ export class EditorHelper {
156156
}
157157

158158
const converters = await languageExtractor.getModulePathToUriConverters();
159-
let path;
160-
for (let index = 0; !path && index < converters.length; index++) {
159+
let uri: vscode.Uri | undefined;
160+
for (let index = 0; !uri && index < converters.length; index++) {
161161
const converter = converters[index];
162-
path = await converter.convert(pathInfo);
162+
uri = await converter.convert(pathInfo);
163163
}
164164

165-
return path;
165+
return uri;
166166
}
167167

168168
public async getExecutedCodeFromScm(uri: vscode.Uri, commit: string, line: integer) : Promise<string |undefined>{

0 commit comments

Comments
 (0)