libct/cg/fscommon.ParseKeyValue: no need to wrap err
The error returned from strconv.ParseUint is already pretty descriptive,
something like:
strconv.ParseUint: parsing "000d": invalid syntax
So, there is no need to add more context to it.
@@ -53,7 +53,7 @@ func ParseKeyValue(t string) (string, uint64, error) {
value, err := ParseUint(parts[1], 10, 64)
if err != nil {
- return "", 0, fmt.Errorf("unable to convert to uint64: %v", err)
+ return "", 0, err
}
return parts[0], value, nil
