Skip to content

Commit 0f4ed64

Browse files
committed
fix: incorrect nullish coalescing check in getPackageData method
1 parent 367aaf6 commit 0f4ed64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/package/package.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ export class Package {
304304
* @param force force a refresh of the package data
305305
*/
306306
public async getPackageData(force = false): Promise<PackagingSObjects.Package2 | undefined> {
307-
if (!this.packageData ?? force) {
307+
if (!this.packageData || force) {
308308
this.packageData = (await this.options.connection.tooling
309309
.sobject('Package2')
310310
.retrieve(this.packageId)) as PackagingSObjects.Package2;

0 commit comments

Comments
 (0)