Skip to content

Commit

Permalink
pass golint
Browse files Browse the repository at this point in the history
  • Loading branch information
tonicmuroq committed Apr 12, 2021
1 parent ed5e0fd commit 1c85df5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/node/set.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,15 @@ func generateSetNodeOptions(c *cli.Context, client corepb.CoreRPCClient) (*corep
return nil, err
}
if memory > 0 {
memory = memory - node.InitMemory
memory -= node.InitMemory
}

storage, err := utils.ParseRAMInHuman(c.String("storage"))
if err != nil {
return nil, err
}
if storage > 0 {
storage = storage - node.InitStorage
storage -= node.InitStorage
}

return &corepb.SetNodeOptions{
Expand Down

0 comments on commit 1c85df5

Please sign in to comment.