소스 검색

remove unreachable code

if statement is preceded by another that has the same condition and ends with a return

Signed-off-by: Alex Bedo <[email protected]>
Alex Bedo 1 년 전
부모
커밋
918b508bd5
1개의 변경된 파일0개의 추가작업 그리고 9개의 파일을 삭제
  1. 0 9
      pkg/compose/publish.go

+ 0 - 9
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,