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

Skip to content

Commit 257c62d

Browse files
chore: appease linter
1 parent b8fe8c5 commit 257c62d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

agent/agentcontainers/api.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ func expandedAgentName(workspaceFolder string, friendlyName string, depth int) (
740740
// makeAgentName attempts to create an agent name. It will first attempt to create an
741741
// agent name based off of the workspace folder, and will eventually fallback to a
742742
// friendly name. Like `safeAgentName`, the second returned value will be true if the
743-
// agent name utilises the workspace folder, and false if it falls back to the
743+
// agent name utilizes the workspace folder, and false if it falls back to the
744744
// friendly name.
745745
func (api *API) makeAgentName(workspaceFolder string, friendlyName string) (string, bool) {
746746
for attempt := 0; attempt <= maxAttemptsToNameAgent; attempt++ {
@@ -1389,7 +1389,7 @@ func (api *API) maybeInjectSubAgentIntoContainerLocked(ctx context.Context, dc c
13891389
// If there has been a unique constraint violation but the user is *not*
13901390
// using an auto-generated name, then we should error. This is because
13911391
// we do not want to surprise the user with a name they did not ask for.
1392-
if usingFolderName, _ := api.usingWorkspaceFolderName[dc.WorkspaceFolder]; !usingFolderName {
1392+
if usingFolderName := api.usingWorkspaceFolderName[dc.WorkspaceFolder]; !usingFolderName {
13931393
return xerrors.Errorf("create subagent failed: %w", err)
13941394
}
13951395

0 commit comments

Comments
 (0)