Skip to content

Commit ffa313c

Browse files
fix: ignore QF1007 merge conditional assignment into variable declaration
1 parent 96872c2 commit ffa313c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/pkg/agent/cmd/run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ func runElasticAgent(
217217
pathConfigFile := paths.AgentConfigFile()
218218

219219
// agent ID needs to stay empty in bootstrap mode
220-
createAgentID := true
220+
createAgentID := true //nolint:staticcheck // keep createAgentID assignment explicit
221221
if cfg.Fleet != nil && cfg.Fleet.Server != nil && cfg.Fleet.Server.Bootstrap {
222222
createAgentID = false
223223
}

0 commit comments

Comments
 (0)