mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
fix: format imports and rename typo-flagged var
This commit is contained in:
@@ -5,7 +5,6 @@ import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"storj.io/drpc/drpcerr"
|
||||
|
||||
"github.com/coder/coder/v2/agent/agentcontext"
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user