Skip to content

Commit

Permalink
Fix lint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
belimawr committed Jun 12, 2024
1 parent c645b96 commit 6dcc963
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions internal/pkg/agent/cmd/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -971,9 +971,5 @@ func isContainer(detail component.PlatformDetail) component.PlatformDetail {
func isStatePathTooLong(statePath string) bool {
// This replicates the logic from `setPaths`
socketPath := filepath.Join(statePath, "data", paths.ControlSocketName)
if len(socketPath) > 107 {
return true
}

return false
return len(socketPath) > 107
}

0 comments on commit 6dcc963

Please sign in to comment.