Commit d7be5c66 authored by GagziW's avatar GagziW Committed by Péter Szilágyi

common: changed if-else blocks to conform with golint (#16656)

parent d2fe83dc
......@@ -87,15 +87,13 @@ func Hex2BytesFixed(str string, flen int) []byte {
h, _ := hex.DecodeString(str)
if len(h) == flen {
return h
} else {
}
if len(h) > flen {
return h[len(h)-flen:]
} else {
}
hh := make([]byte, flen)
copy(hh[flen-len(h):flen], h[:])
return hh
}
}
}
func RightPadBytes(slice []byte, l int) []byte {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment