8000 fix lint; wrong receiver name · coder/coder@101702d · GitHub
[go: up one dir, main page]

Skip to content

Commit 101702d

Browse files
committed
fix lint; wrong receiver name
1 parent ae34934 commit 101702d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tailnet/controllers.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -897,17 +897,17 @@ type Workspace struct {
897897
agents map[uuid.UUID]*Agent
898898
}
899899

900-
func (a *Workspace) Clone() Workspace {
900+
func (w *Workspace) Clone() Workspace {
901901
agents := make(map[uuid.UUID]*Agent, len(a.agents))
902-
for k, v := range a.agents {
902+
for k, v := range w.agents {
903903
clone := v.Clone()
904904
agents[k] = &clone
905905
}
906906
return Workspace{
907-
ID: a.ID,
908-
Name: a.Name,
909-
Status: a.Status,
910-
ownerUsername: a.ownerUsername,
907+
ID: w.ID,
908+
Name: w.Name,
909+
Status: w.Status,
910+
ownerUsername: w.ownerUsername,
911911
agents: agents,
912912
}
913913
}

0 commit comments

Comments
 (0)
0