Skip to content

Commit 7f27e71

Browse files
author
Adnaan Badr
committed
No need to check result is nil since stage returns an empty result anyhow
1 parent ffb6598 commit 7f27e71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pipeline.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ func (p *Pipeline) Run() *Result {
138138
for i, stage := range p.Stages {
139139
stage.index = i
140140
result = stage.run(request)
141-
if result != nil && result.Error != nil {
141+
if result.Error != nil {
142142
p.status("stage: " + stage.Name + " failed !!! ")
143143
return result
144144
}

0 commit comments

Comments
 (0)