Skip to content

Commit

Permalink
supervisor: Fix nil check (#12209)
Browse files Browse the repository at this point in the history
  • Loading branch information
Inphi authored Sep 30, 2024
1 parent b6e27b6 commit 909d7fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion op-supervisor/supervisor/backend/safety/views.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (vi *View) Process() error {
return logs.ErrFuture
}
// check if it is an executing message. If so, check the dependency
if execMsg := state.ExecMessage(); execMsg == nil {
if execMsg := state.ExecMessage(); execMsg != nil {
// Check if executing message is within cross L2 view,
// relative to the L1 view of current message.
// And check if the message is valid to execute at all
Expand Down

0 comments on commit 909d7fd

Please sign in to comment.