From 918b508bd5ac257761c3df43bb91c81517d60125 Mon Sep 17 00:00:00 2001 From: Alex Bedo Date: Thu, 6 Jun 2024 21:01:18 +0200 Subject: [PATCH] remove unreachable code if statement is preceded by another that has the same condition and ends with a return Signed-off-by: Alex Bedo --- pkg/compose/publish.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/pkg/compose/publish.go b/pkg/compose/publish.go index a01d7be58..78f3ea507 100644 --- a/pkg/compose/publish.go +++ b/pkg/compose/publish.go @@ -87,15 +87,6 @@ func (s *composeService) publish(ctx context.Context, project *types.Project, re if err != nil { return err } - - if err != nil { - w.Event(progress.Event{ - ID: repository, - Text: "publishing", - Status: progress.Error, - }) - return err - } } w.Event(progress.Event{ ID: repository,