Skip to content

Commit

Permalink
PMM-11180 fix linter.
Browse files Browse the repository at this point in the history
  • Loading branch information
BupycHuk committed Oct 17, 2024
1 parent 5b97bc0 commit 7108418
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions agent/agentlocal/agent_local_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func TestServerStatus(t *testing.T) {
var supervisor mockSupervisor
supervisor.Test(t)
supervisor.On("AgentsList").Return(agentInfo)
var client mockClient
client := &mockClient{}
client.Test(t)
client.On("GetServerConnectMetadata").Return(&agentv1.ServerConnectMetadata{
AgentRunsOnNodeID: "00000000-0000-4000-8000-000000000003",
Expand All @@ -61,7 +61,7 @@ func TestServerStatus(t *testing.T) {
Password: "password",
},
})
return agentInfo, &supervisor, &client, cfgStorage
return agentInfo, &supervisor, client, cfgStorage
}

t.Run("without network info", func(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion managed/services/inventory/grpc/agents_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ func (s *agentsServer) AddAgent(ctx context.Context, req *inventoryv1.AddAgentRe

// ChangeAgent allows to change some Agent attributes.
func (s *agentsServer) ChangeAgent(ctx context.Context, req *inventoryv1.ChangeAgentRequest) (*inventoryv1.ChangeAgentResponse, error) {
agentID := req.GetAgentId()
agentID := req.GetAgentId() //nolint:typecheck

switch req.Agent.(type) {
case *inventoryv1.ChangeAgentRequest_NodeExporter:
Expand Down

0 comments on commit 7108418

Please sign in to comment.