[client/ui] Use type conversion for ProfileRef to UpParams (staticcheck)

This commit is contained in:
Zoltan Papp
2026-05-13 16:07:21 +02:00
parent df1935da6d
commit d33b841a33

View File

@@ -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)
}
}