From b93fdb3ca36cbbb4d83f745d45dbb0946a46bcee Mon Sep 17 00:00:00 2001 From: partouf Date: Tue, 24 Oct 2023 17:24:07 +0200 Subject: [PATCH] fix types --- lib/base-compiler.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/base-compiler.ts b/lib/base-compiler.ts index fd8d5b5fe..538788dde 100644 --- a/lib/base-compiler.ts +++ b/lib/base-compiler.ts @@ -868,11 +868,11 @@ export class BaseCompiler implements ICompiler { .filter(link => link) as string[]; } - getSharedLibraryPaths(libraries: CompileChildLibraries[]) { + getSharedLibraryPaths(libraries: CompileChildLibraries[]): string[] { return libraries .map(selectedLib => { const foundVersion = this.findLibVersion(selectedLib); - if (!foundVersion) return false; + if (!foundVersion) return []; const paths = [...foundVersion.libpath]; if (this.buildenvsetup && !this.buildenvsetup.extractAllToRoot) { @@ -922,7 +922,7 @@ export class BaseCompiler implements ICompiler { ) as string[]; } - getSharedLibraryPathsAsLdLibraryPathsForExecution(libraries) { + getSharedLibraryPathsAsLdLibraryPathsForExecution(libraries): string[] { let paths = ''; if (!this.alwaysResetLdPath) { paths = process.env.LD_LIBRARY_PATH || '';