From d33b841a3394e96b57bb2e2cac0492874d0e96a8 Mon Sep 17 00:00:00 2001 From: Zoltan Papp Date: Wed, 13 May 2026 16:07:21 +0200 Subject: [PATCH] [client/ui] Use type conversion for ProfileRef to UpParams (staticcheck) --- client/ui/services/profileswitcher.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/client/ui/services/profileswitcher.go b/client/ui/services/profileswitcher.go index 855097749..1b3d2ba43 100644 --- a/client/ui/services/profileswitcher.go +++ b/client/ui/services/profileswitcher.go @@ -69,10 +69,7 @@ func (s *ProfileSwitcher) SwitchActive(ctx context.Context, p ProfileRef) error } if wasActive { - if err := s.connection.Up(ctx, UpParams{ - ProfileName: p.ProfileName, - Username: p.Username, - }); err != nil { + if err := s.connection.Up(ctx, UpParams(p)); err != nil { return fmt.Errorf("reconnect %q: %w", p.ProfileName, err) } }