mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-19 22:44:24 +00:00
core: apply megacheck vet tool (unused, gosimple, staticcheck)
This commit is contained in:
+1
-4
@@ -282,10 +282,7 @@ func (commit *Commit) GetByIndex(index int) *Vote {
|
||||
}
|
||||
|
||||
func (commit *Commit) IsCommit() bool {
|
||||
if len(commit.Precommits) == 0 {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
return len(commit.Precommits) == 0
|
||||
}
|
||||
|
||||
func (commit *Commit) ValidateBasic() error {
|
||||
|
||||
Reference in New Issue
Block a user