Skip to content

Commit a407886

Browse files
apupierfbricon
authored andcommitted
Remove redundant use of await on a return
value.sonarlint(typescript:S4326) Signed-off-by: Aurélien Pupier <apupier@redhat.com>
1 parent 0375939 commit a407886

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/findJavaRuntimes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ async function findLinkedFile(file: string): Promise<string> {
275275
if (!await fse.pathExists(file) || !(await fse.lstat(file)).isSymbolicLink()) {
276276
return file;
277277
}
278-
return await findLinkedFile(await fse.readlink(file));
278+
return findLinkedFile(await fse.readlink(file));
279279
}
280280

281281
export async function getJavaVersion(javaHome: string): Promise<number | undefined> {

0 commit comments

Comments
 (0)