[#355] netmap: Remove unnecessary err declaration
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
16fd3bafe0
commit
338faaf308
1 changed files with 0 additions and 1 deletions
|
@ -61,7 +61,6 @@ func (x *NodeInfo) readFromV2(m netmap.NodeInfo, checkFieldPresence bool) error
|
||||||
return fmt.Errorf("invalid %s attribute: %w", attrCapacity, err)
|
return fmt.Errorf("invalid %s attribute: %w", attrCapacity, err)
|
||||||
}
|
}
|
||||||
case key == attrPrice:
|
case key == attrPrice:
|
||||||
var err error
|
|
||||||
_, err = strconv.ParseUint(attributes[i].GetValue(), 10, 64)
|
_, err = strconv.ParseUint(attributes[i].GetValue(), 10, 64)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("invalid %s attribute: %w", attrPrice, err)
|
return fmt.Errorf("invalid %s attribute: %w", attrPrice, err)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue