Skip to content

Commit

Permalink
Merge pull request #20651 from lesam/add-goimports-2
Browse files Browse the repository at this point in the history
chore: add goimports
  • Loading branch information
lesam authored Jan 29, 2021
2 parents 06020b2 + 781fa0e commit d5aa736
Show file tree
Hide file tree
Showing 34 changed files with 194 additions and 178 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ ui_client:
#

fmt: $(SOURCES_NO_VENDOR)
gofmt -w -s $^
./etc/fmt.sh

checkfmt:
./etc/checkfmt.sh
Expand Down
2 changes: 1 addition & 1 deletion chronograf/dist/dist.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"fmt"
"net/http"

"github.com/elazarl/go-bindata-assetfs"
assetfs "github.com/elazarl/go-bindata-assetfs"
)

// DebugAssets serves assets via a specified directory
Expand Down
26 changes: 13 additions & 13 deletions chronograf/enterprise/meta_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func TestMetaClient_Users(t *testing.T) {
{
Name: "admin",
Permissions: map[string][]string{
"": []string{
"": {
"ViewAdmin", "ViewChronograf",
},
},
Expand Down Expand Up @@ -195,7 +195,7 @@ func TestMetaClient_Users(t *testing.T) {
{
Name: "admin",
Permissions: map[string][]string{
"": []string{
"": {
"ViewAdmin", "ViewChronograf",
},
},
Expand Down Expand Up @@ -297,7 +297,7 @@ func TestMetaClient_User(t *testing.T) {
want: &User{
Name: "admin",
Permissions: map[string][]string{
"": []string{
"": {
"ViewAdmin", "ViewChronograf",
},
},
Expand Down Expand Up @@ -723,7 +723,7 @@ func TestMetaClient_Roles(t *testing.T) {
{
Name: "admin",
Permissions: map[string][]string{
"": []string{
"": {
"ViewAdmin", "ViewChronograf",
},
},
Expand Down Expand Up @@ -755,7 +755,7 @@ func TestMetaClient_Roles(t *testing.T) {
{
Name: "admin",
Permissions: map[string][]string{
"": []string{
"": {
"ViewAdmin", "ViewChronograf",
},
},
Expand Down Expand Up @@ -818,7 +818,7 @@ func TestMetaClient_Role(t *testing.T) {
want: &Role{
Name: "admin",
Permissions: map[string][]string{
"": []string{
"": {
"ViewAdmin", "ViewChronograf",
},
},
Expand Down Expand Up @@ -897,12 +897,12 @@ func TestMetaClient_UserRoles(t *testing.T) {
name: nil,
},
want: map[string]Roles{
"marty": Roles{
"marty": {
Roles: []Role{
{
Name: "timetravelers",
Permissions: map[string][]string{
"": []string{
"": {
"ViewAdmin", "ViewChronograf",
},
},
Expand All @@ -911,33 +911,33 @@ func TestMetaClient_UserRoles(t *testing.T) {
{
Name: "mcfly",
Permissions: map[string][]string{
"": []string{
"": {
"ViewAdmin", "ViewChronograf",
},
},
Users: []string{"marty", "george"},
},
},
},
"docbrown": Roles{
"docbrown": {
Roles: []Role{
{
Name: "timetravelers",
Permissions: map[string][]string{
"": []string{
"": {
"ViewAdmin", "ViewChronograf",
},
},
Users: []string{"marty", "docbrown"},
},
},
},
"george": Roles{
"george": {
Roles: []Role{
{
Name: "mcfly",
Permissions: map[string][]string{
"": []string{
"": {
"ViewAdmin", "ViewChronograf",
},
},
Expand Down
Loading

0 comments on commit d5aa736

Please sign in to comment.