Skip to content

Commit e7561c8

Browse files
committed
Assume client is defined
Signed-off-by: worksofliam <[email protected]>
1 parent 2965867 commit e7561c8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/api/IBMiContent.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,19 +1096,19 @@ export default class IBMiContent {
10961096
}
10971097

10981098
async uploadFiles(files: { local: string | Uri, remote: string }[], options?: node_ssh.SSHPutFilesOptions) {
1099-
await this.ibmi.client.putFiles(files.map(f => { return { local: Tools.fileToPath(f.local), remote: f.remote } }), options);
1099+
await this.ibmi.client!.putFiles(files.map(f => { return { local: Tools.fileToPath(f.local), remote: f.remote } }), options);
11001100
}
11011101

11021102
async downloadFile(localFile: string | Uri, remoteFile: string) {
1103-
await this.ibmi.client.getFile(Tools.fileToPath(localFile), remoteFile);
1103+
await this.ibmi.client!.getFile(Tools.fileToPath(localFile), remoteFile);
11041104
}
11051105

11061106
async uploadDirectory(localDirectory: string | Uri, remoteDirectory: string, options?: node_ssh.SSHGetPutDirectoryOptions) {
1107-
await this.ibmi.client.putDirectory(Tools.fileToPath(localDirectory), remoteDirectory, options);
1107+
await this.ibmi.client!.putDirectory(Tools.fileToPath(localDirectory), remoteDirectory, options);
11081108
}
11091109

11101110
async downloadDirectory(localDirectory: string | Uri, remoteDirectory: string, options?: node_ssh.SSHGetPutDirectoryOptions) {
1111-
await this.ibmi.client.getDirectory(Tools.fileToPath(localDirectory), remoteDirectory, options);
1111+
await this.ibmi.client!.getDirectory(Tools.fileToPath(localDirectory), remoteDirectory, options);
11121112
}
11131113
}
11141114

0 commit comments

Comments
 (0)