fix: format imports and rename typo-flagged var

This commit is contained in:
Kyle Carberry
2026-06-02 14:35:58 +00:00
parent 01f9e4b4be
commit 37d8cb136a
3 changed files with 3 additions and 5 deletions
-1
View File
@@ -5,7 +5,6 @@ import (
"testing"
"github.com/stretchr/testify/require"
"storj.io/drpc/drpcerr"
"github.com/coder/coder/v2/agent/agentcontext"
+2 -2
View File
@@ -292,8 +292,8 @@ func (*Watcher) collectDirs(roots []ScanRoot) map[string]struct{} {
if err != nil {
// Watch the deepest existing ancestor so the
// root being created later still fires.
if anc := existingAncestor(root.Path); anc != "" {
out[anc] = struct{}{}
if ancestor := existingAncestor(root.Path); ancestor != "" {
out[ancestor] = struct{}{}
}
continue
}
+1 -2
View File
@@ -10,10 +10,9 @@ import (
"github.com/stretchr/testify/require"
"github.com/coder/quartz"
"github.com/coder/coder/v2/agent/agentcontext"
"github.com/coder/coder/v2/testutil"
"github.com/coder/quartz"
)
func TestWatcher_FiresOnAgentsMdEdit(t *testing.T) {