Skip to content

Commit

Permalink
roll back product context test - more thought needed
Browse files Browse the repository at this point in the history
  • Loading branch information
gonuke committed Mar 27, 2024
1 parent c019e0e commit 4526fc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/product.cc
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ int Product::package_id() {
}

void Product::ChangePackageId(int new_package_id) {
if (ctx_ == NULL) {
if (ctx_ != NULL) {
throw ValueError("Package Id cannot be changed with NULL context");
}
if (new_package_id == package_id_) {
Expand Down

0 comments on commit 4526fc1

Please sign in to comment.