diff --git a/pkg/liveshare/session.go b/pkg/liveshare/session.go index 386d4d3f2..ee97e52bb 100644 --- a/pkg/liveshare/session.go +++ b/pkg/liveshare/session.go @@ -132,9 +132,9 @@ func (s *Session) Rebuild(ctx context.Context) error { if !rebuildSuccess { return fmt.Errorf("couldn't rebuild codespace") - } else { - return nil } + + return nil } // heartbeat runs until context cancellation, periodically checking whether there is a