blockchain v0: lint++

This commit is contained in:
Aleksandr Bezobchuk
2021-01-11 12:21:15 -05:00
parent 96bc96aa40
commit 4a596bfd72

View File

@@ -85,7 +85,10 @@ func (m *Message) Validate() error {
return errors.New("negative Height")
}
if m.GetStatusResponse().Base > m.GetStatusResponse().Height {
return fmt.Errorf("base %v cannot be greater than height %v", m.GetStatusResponse().Base, m.GetStatusResponse().Height)
return fmt.Errorf(
"base %v cannot be greater than height %v",
m.GetStatusResponse().Base, m.GetStatusResponse().Height,
)
}
case *Message_StatusRequest: