Skip to content

Commit 9735743

Browse files
committed
fix linter
1 parent b9b285e commit 9735743

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

auth/device_flow_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ func TestConfig_RevokeToken(t *testing.T) {
173173
config, mux, teardown := setup()
174174
defer teardown()
175175

176-
mux.HandleFunc("/api/private/unauth/account/device/revoke", func(w http.ResponseWriter, r *http.Request) {
176+
mux.HandleFunc("/api/private/unauth/account/device/revoke", func(_ http.ResponseWriter, r *http.Request) {
177177
testMethod(t, r)
178178
})
179179

opsmngr/agents_api_keys_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"github.com/go-test/deep"
2323
)
2424

25-
const projectID = "5e66185d917b220fbd8bb4d1" //nolint:gosec // not a credential
25+
const projectID = "5e66185d917b220fbd8bb4d1" // not a credential
2626

2727
func TestAgentsServiceOp_ListAgentAPIKeys(t *testing.T) {
2828
client, mux, teardown := setup()

opsmngr/automation_config.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,10 @@ type MongoDBUser struct {
231231
Username string `json:"user"` //nolint:tagliatelle // Username is a better name than just user
232232
}
233233

234-
// MongoDBDeletedUser user to delete from DBs list
234+
// MongoDBDeletedUser user to delete from DBs list.
235235
type MongoDBDeletedUser struct {
236-
Username string `json:"user"`
237-
Databases []string `json:"dbs"`
236+
Username string `json:"user"` //nolint:tagliatelle // used as in the API
237+
Databases []string `json:"dbs"` //nolint:tagliatelle // used as in the API
238238
}
239239

240240
// AuthenticationRestriction of a database user.

opsmngr/users.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ type User struct {
4949
Links []*Link `json:"links,omitempty"`
5050
MobileNumber string `json:"mobileNumber,omitempty"`
5151
Password string `json:"password,omitempty"`
52-
TeamIds []string `json:"teamIds,omitempty"`
52+
TeamIds []string `json:"teamIds,omitempty"` //nolint:tagliatelle // used as in the API
5353
Roles []*UserRole `json:"roles,omitempty"`
5454
Username string `json:"username"`
5555
Country string `json:"country,omitempty"`

0 commit comments

Comments
 (0)