From b373fbbe4447b7740b86571ef7c5ad3166b8148d Mon Sep 17 00:00:00 2001 From: JP Ungaretti Date: Sun, 9 Oct 2022 01:00:14 +0000 Subject: [PATCH] Remove else block --- pkg/liveshare/session.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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