Skip to content

Commit 9a9d1ad

Browse files
Make getFileSize sync
1 parent b7be851 commit 9a9d1ad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/services/itmstransporter-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export class ITMSTransporterService implements IITMSTransporterService {
4545
this.$fs.copyFile(data.ipaFilePath, ipaFileLocation).wait();
4646

4747
let ipaFileHash = this.$fs.getFileShasum(ipaFileLocation, {algorithm: "md5"}).wait(),
48-
ipaFileSize = this.$fs.getFileSize(ipaFileLocation).wait(),
48+
ipaFileSize = this.$fs.getFileSize(ipaFileLocation),
4949
metadata = this.getITMSMetadataXml(iOSApplication.adamId, ipaFileName, ipaFileHash, ipaFileSize);
5050

5151
this.$fs.writeFile(path.join(innerDirectory, ITMSConstants.ApplicationMetadataFile), metadata).wait();

test/stubs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export class FileSystemStub implements IFileSystem {
5656
return Future.fromResult();
5757
}
5858

59-
getFileSize(path:string):IFuture<number> {
59+
getFileSize(path:string): number {
6060
return undefined;
6161
}
6262

0 commit comments

Comments
 (0)