mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-18 07:31:20 +00:00
linting: add to Makefile & do some fixes
This commit is contained in:
@ -31,10 +31,7 @@ func LeftPadString(s string, totalLength int) string {
|
||||
func IsHex(s string) bool {
|
||||
if len(s) > 2 && s[:2] == "0x" {
|
||||
_, err := hex.DecodeString(s[2:])
|
||||
if err != nil {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
return err == nil
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
Reference in New Issue
Block a user