Skip to content

Commit

Permalink
fix golang linting
Browse files Browse the repository at this point in the history
  • Loading branch information
nitisht committed Nov 14, 2023
1 parent 96cc1ae commit 2977583
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
1 change: 0 additions & 1 deletion cmd/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
"fmt"
"net/url"
"os"

"pb/pkg/config"
"pb/pkg/model/credential"
"pb/pkg/model/defaultprofile"
Expand Down
3 changes: 1 addition & 2 deletions cmd/role.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,10 @@ import (
"fmt"
"io"
"os"
"pb/pkg/model/role"
"strings"
"sync"

"pb/pkg/model/role"

tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"
"github.com/spf13/cobra"
Expand Down
8 changes: 4 additions & 4 deletions cmd/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ var addUser = &cobra.Command{
}

var putBody io.Reader
putBodyJson, _ := json.Marshal(rolesToSetArr)
putBody = bytes.NewBuffer([]byte(putBodyJson))
putBodyJSON, _ := json.Marshal(rolesToSetArr)
putBody = bytes.NewBuffer([]byte(putBodyJSON))
req, err := client.NewRequest("POST", "user/"+name, putBody)
if err != nil {
return err
Expand Down Expand Up @@ -199,8 +199,8 @@ var SetUserRoleCmd = &cobra.Command{
}

var putBody io.Reader
putBodyJson, _ := json.Marshal(rolesToSetArr)
putBody = bytes.NewBuffer([]byte(putBodyJson))
putBodyJSON, _ := json.Marshal(rolesToSetArr)
putBody = bytes.NewBuffer([]byte(putBodyJSON))
req, err := client.NewRequest("PUT", "user/"+name+"/role", putBody)
if err != nil {
return err
Expand Down
1 change: 0 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package main
import (
"errors"
"os"

"pb/cmd"
"pb/pkg/config"

Expand Down

0 comments on commit 2977583

Please sign in to comment.