Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7704238

Browse files
chore: grammar
Co-authored-by: Copilot <[email protected]>
1 parent 32e7320 commit 7704238

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

agent/agentcontainers/api.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -634,9 +634,8 @@ func (api *API) processUpdatedContainersLocked(ctx context.Context, updated code
634634

635635
var consecutiveHyphenRegex = regexp.MustCompile("-+")
636636

637-
// safeAgentName returns an agent name safe version
638-
// of a folder name, falling back to a safe version
639-
// of the container name if unable to create a name.
637+
// `safeAgentName` returns a safe agent name derived from a folder name,
638+
// falling back to the container’s friendly name if needed.
640639
func safeAgentName(name string, friendlyName string) string {
641640
// Keep only ASCII letters and digits, replacing everything
642641
// else with a hyphen.

0 commit comments

Comments
 (0)