Fix output of list action when it is failed

Signed-off-by: Song Shukun <song.shukun@fujitsu.com>
Signed-off-by: Matheus Hunsche <matheus.hunsche@ifood.com.br>
pull/8840/head
Song Shukun 6 years ago committed by Matheus Hunsche
parent 782dbabd57
commit 7cc5887826

@ -165,6 +165,10 @@ func (l *List) Run() ([]*release.Release, error) {
return true return true
}) })
if err != nil {
return nil, err
}
if results == nil { if results == nil {
return results, nil return results, nil
} }

Loading…
Cancel
Save