Skip to content

Commit

Permalink
Simplify to allow inlining
Browse files Browse the repository at this point in the history
  • Loading branch information
lkarlslund committed Oct 30, 2022
1 parent d811517 commit d783617
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions modules/engine/object.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,8 @@ func (o *Object) IsValid() bool {
}

func (o *Object) panicIfNotValid() {
status := o.status.Load()
if status != 1 {
panic(fmt.Sprintf("object is not valid: %v", status))
if o.status.Load() != 1 {
panic(fmt.Sprintf("object is not valid: %v", o.status.Load()))
}
}

Expand Down

0 comments on commit d783617

Please sign in to comment.