goimports style fixes.

This commit is contained in:
Renan DelValle 2019-03-19 15:28:24 -07:00
parent 4551231644
commit 616d4bc57e
No known key found for this signature in database
GPG key ID: C240AD6D6F443EC9
9 changed files with 125 additions and 131 deletions

View file

@ -2,10 +2,11 @@ package cmd
import (
"fmt"
"github.com/pkg/errors"
"github.com/spf13/cobra"
"strconv"
"strings"
"github.com/pkg/errors"
"github.com/spf13/cobra"
)
func init() {
@ -32,7 +33,7 @@ var setQuotaCmd = &cobra.Command{
*role = args[0]
for i:=1; i < len(args); i++ {
for i := 1; i < len(args); i++ {
resourcePair := strings.Split(args[i], ":")
if len(resourcePair) != 2 {
@ -53,7 +54,7 @@ var setQuotaCmd = &cobra.Command{
return errors.Wrap(err, "unable to convert RAM value provided to a integer number")
}
case "disk":
case "disk":
disk, err = strconv.ParseInt(resourcePair[1], 10, 64)
if err != nil {
return errors.Wrap(err, "unable to convert DISK value provided to a integer number")