Skip to content

Commit

Permalink
fix: correct lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
1995parham committed Apr 1, 2024
1 parent a7d8546 commit a513d57
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 12 deletions.
2 changes: 0 additions & 2 deletions internal/api/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,6 @@ func TestExtractVendorToken(t *testing.T) {
},
}
for _, tt := range tests {
tt := tt

t.Run(tt.name, func(t *testing.T) {
t.Parallel()

Expand Down
2 changes: 0 additions & 2 deletions internal/authenticator/builder_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ func TestToUserAccessType(t *testing.T) {
}

for _, c := range cases {
c := c

t.Run(c.name, func(t *testing.T) {
t.Parallel()

Expand Down
1 change: 0 additions & 1 deletion internal/authenticator/manual_authenticator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,6 @@ func TestManualAuthenticator_validateAccessType(t *testing.T) {
}

for _, tt := range tests {
tt := tt
t.Run(tt.name, func(t *testing.T) {
t.Parallel()

Expand Down
6 changes: 3 additions & 3 deletions internal/topics/config.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package topics

type HashData struct {
Length int `koanf:"length"`
Salt string `koanf:"salt"`
Alphabet string `koanf:"alphabet"`
Length int `json:"length,omitempty" koanf:"length"`
Salt string `json:"salt,omitempty" koanf:"salt"`
Alphabet string `json:"alphabet,omitempty" koanf:"alphabet"`
}
1 change: 0 additions & 1 deletion internal/topics/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ func TestTopicManager(t *testing.T) {
sub := "DXKgaNQa7N5Y7bo"

for _, tc := range tests {
tc := tc
t.Run(tc.name, func(t *testing.T) {
t.Parallel()

Expand Down
6 changes: 3 additions & 3 deletions internal/topics/topic.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
)

type Topic struct {
Type string `koanf:"type"`
Template string `koanf:"template"`
Accesses map[string]acl.AccessType `koanf:"accesses"`
Type string `json:"type,omitempty" koanf:"type"`
Template string `json:"template,omitempty" koanf:"template"`
Accesses map[string]acl.AccessType `json:"accesses,omitempty" koanf:"accesses"`
}

type Template struct {
Expand Down

0 comments on commit a513d57

Please sign in to comment.