Skip to content

Commit

Permalink
chore: linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Nov 6, 2023
1 parent 01ba6af commit 369edb6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/commands/package/version/create/report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ export class PackageVersionCreateReportCommand extends SfCommand<ReportCommandRe

private display(record: PackageVersionCreateRequestResult, requestId: string, devOrg: Org): void {
const installUrlValue =
record.Status === 'Success' ? `${pkgUtils.INSTALL_URL_BASE.toString()}${record.SubscriberPackageVersionId}` : '';
record.Status.toString() === 'Success'
? `${pkgUtils.INSTALL_URL_BASE.toString()}${record.SubscriberPackageVersionId}`
: '';

const data = [
{
Expand Down
4 changes: 2 additions & 2 deletions src/commands/package/version/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export class PackageVersionListCommand extends SfCommand<PackageVersionListComma
const codeCoverage =
record.CodeCoverage?.apexCodeCoveragePercentage != null
? `${record.CodeCoverage.apexCodeCoveragePercentage.toString()}%`
: record.Package2.IsOrgDependent || record.ValidationSkipped
: Boolean(record.Package2.IsOrgDependent) || record.ValidationSkipped
? 'N/A'
: '';

Expand Down Expand Up @@ -196,7 +196,7 @@ export class PackageVersionListCommand extends SfCommand<PackageVersionListComma
Alias: AliasStr,
IsOrgDependent: isOrgDependent,
ReleaseVersion: record.ReleaseVersion == null ? '' : Number.parseFloat(record.ReleaseVersion).toFixed(1),
BuildDurationInSeconds: record.BuildDurationInSeconds == null ? '' : record.BuildDurationInSeconds,
BuildDurationInSeconds: record.BuildDurationInSeconds ?? '',
HasMetadataRemoved: hasMetadataRemoved,
CreatedBy: record.CreatedById,
Language: record.Language,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/package/version/report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ export class PackageVersionReportCommand extends SfCommand<PackageVersionReportR
}

record.HasPassedCodeCoverageCheck =
results.Package2.IsOrgDependent || results.ValidationSkipped
Boolean(results.Package2.IsOrgDependent) || results.ValidationSkipped
? 'N/A'
: results.HasPassedCodeCoverageCheck ?? undefined;

Expand Down

0 comments on commit 369edb6

Please sign in to comment.