Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ltzmaxwell committed Feb 21, 2025
1 parent 24a6d2a commit 5f95c9d
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions gnovm/pkg/gnolang/realm.go
Original file line number Diff line number Diff line change
Expand Up @@ -485,13 +485,13 @@ func (rlm *Realm) FinalizeRealmTransaction(readonly bool, store Store) {
}
if readonly {
if true ||
len(rlm.newCreated) > 0 ||
len(rlm.newEscaped) > 0 ||
len(rlm.newDeleted) > 0 ||
len(rlm.created) > 0 ||
len(rlm.updated) > 0 ||
len(rlm.deleted) > 0 ||
len(rlm.escaped) > 0 {
len(rlm.newCreated) > 0 ||
len(rlm.newEscaped) > 0 ||
len(rlm.newDeleted) > 0 ||
len(rlm.created) > 0 ||
len(rlm.updated) > 0 ||
len(rlm.deleted) > 0 ||
len(rlm.escaped) > 0 {
panic("realm updates in readonly transaction")
}
return
Expand All @@ -502,9 +502,9 @@ func (rlm *Realm) FinalizeRealmTransaction(readonly bool, store Store) {
ensureUniq(rlm.newDeleted)
ensureUniq(rlm.updated)
if false ||
rlm.created != nil ||
rlm.deleted != nil ||
rlm.escaped != nil {
rlm.created != nil ||
rlm.deleted != nil ||
rlm.escaped != nil {
panic("realm should not have created, deleted, or escaped marks before beginning finalization")
}
}
Expand Down Expand Up @@ -883,9 +883,9 @@ func (rlm *Realm) saveUnsavedObjectRecursively(store Store, oo Object) {
}
// deleted objects should not have gotten here.
if false ||
oo.GetRefCount() <= 0 ||
oo.GetIsNewDeleted() ||
oo.GetIsDeleted() {
oo.GetRefCount() <= 0 ||
oo.GetIsNewDeleted() ||
oo.GetIsDeleted() {
panic("cannot save deleted objects")
}
}
Expand Down

0 comments on commit 5f95c9d

Please sign in to comment.