Skip to content

Commit

Permalink
refactor(packageversioncoverage): fixes from codefactor
Browse files Browse the repository at this point in the history
  • Loading branch information
azlam-abdulsalam committed Mar 2, 2024
1 parent 0238431 commit b0e2866
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ export default class PackageVersionCoverage {
const package2VersionFetcher = new Package2VersionFetcher(this.connection);
const package2Version = await package2VersionFetcher.fetchBySubscriberPackageVersionId(versionId);
SFPLogger.log(`Fetched Record ${JSON.stringify(package2Version)}`, LoggerLevel.TRACE, this.logger);
let packageCoverage = <PackageCoverage>{};
if (package2Version) {
var packageCoverage = <PackageCoverage>{};
packageCoverage.HasPassedCodeCoverageCheck = package2Version.HasPassedCodeCoverageCheck;
packageCoverage.coverage = package2Version.CodeCoverage ? package2Version.CodeCoverage.apexCodeCoveragePercentage : 0;
packageCoverage.packageId = package2Version.Package2Id;
Expand Down

0 comments on commit b0e2866

Please sign in to comment.