Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
sh-cha and coderabbitai[bot] authored Jan 22, 2025
1 parent b11b6de commit 13cdaf7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion challenger/challenger.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,9 @@ func (c *Challenger) RegisterQuerier() {
if err != nil {
return err
}
return ctx.JSON(*status.Host.Node.Syncing || *status.Child.Node.Syncing)
hostSync := status.Host.Node.Syncing != nil && *status.Host.Node.Syncing
childSync := status.Child.Node.Syncing != nil && *status.Child.Node.Syncing
return ctx.JSON(hostSync || childSync)
})
}

Expand Down

0 comments on commit 13cdaf7

Please sign in to comment.