style: gofmt

This commit is contained in:
redtea committed 2026-10-15 22:28:59 +03:00
1 parent 7d1996dd7d
commit ed77c8e0c1
2 files changed
+4 -4

No files matched your search

+3 -3
View File
@@ -457,9 +457,9 @@ func (a *Agent) doShipIn(ctx context.Context, env proto.TaskEnvelope) proto.Task
type unpacker struct { type unpacker struct {
dir, conflict string dir, conflict string
names map[string]bool // the top entries the stream may carry names map[string]bool // the top entries the stream may carry
uid, gid int uid, gid int
chown bool chown bool
done, skipped int done, skipped int
} }
func (u *unpacker) unpack(tr *tar.Reader) error { func (u *unpacker) unpack(tr *tar.Reader) error {
+1 -1
View File
@@ -32,7 +32,7 @@ func TestSavedSSHHosts(t *testing.T) {
if list := s.listSSHHosts(a.ID); len(list) != 1 || list[0].Label != "web" { if list := s.listSSHHosts(a.ID); len(list) != 1 || list[0].Label != "web" {
t.Fatalf("list: %+v", list) t.Fatalf("list: %+v", list)
} }
if len(s.listSSHHosts(a.ID + 1)) != 0 { if len(s.listSSHHosts(a.ID+1)) != 0 {
t.Fatal("another user sees the host") t.Fatal("another user sees the host")
} }
} }