mirror of https://github.com/docker/compose.git
remove unreachable code
if statement is preceded by another that has the same condition and ends with a return Signed-off-by: Alex Bedo <alex98hun@gmail.com>
This commit is contained in:
parent
10531f6302
commit
918b508bd5
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue