Skip to content

Commit ecb5775

Browse files
committed
Fixed overload test
Signed-off-by: Seb Julliand <[email protected]>
1 parent 486095a commit ecb5775

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/IBMiContent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ export default class IBMiContent {
154154
*/
155155
async downloadMemberContent(asp: string | undefined, library: string, sourceFile: string, member: string, localPath?: string): Promise<string>;
156156
async downloadMemberContent(aspOrLibrary: string | undefined, libraryOrSourceFile: string, sourceFileOrMember: string, memberOrLocalPath?: string, localPath?: string): Promise<string> {
157-
const smallSignature = Boolean(aspOrLibrary && libraryOrSourceFile && sourceFileOrMember && !memberOrLocalPath);
157+
const smallSignature = Boolean(aspOrLibrary && libraryOrSourceFile && sourceFileOrMember && ((memberOrLocalPath && !localPath) || !memberOrLocalPath));
158158
const library = this.ibmi.upperCaseName(smallSignature ? String(aspOrLibrary) : libraryOrSourceFile);
159159
const sourceFile = this.ibmi.upperCaseName(smallSignature ? libraryOrSourceFile : sourceFileOrMember);
160160
const member = this.ibmi.upperCaseName(smallSignature ? sourceFileOrMember : String(memberOrLocalPath));

0 commit comments

Comments
 (0)