File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -147,23 +147,23 @@ func PipelineDelete(c echo.Context) error {
147
147
}
148
148
149
149
// Look up pipeline for the given id
150
- var foundPipeline gaia.Pipeline
150
+ var foundPipeline * gaia.Pipeline
151
151
var index int
152
152
var deletedPipelineIndex int
153
153
for pipeline := range pipeline .GlobalActivePipelines .Iter () {
154
154
if pipeline .ID == pipelineID {
155
- foundPipeline = pipeline
155
+ foundPipeline = & pipeline
156
156
deletedPipelineIndex = index
157
157
}
158
158
index ++
159
159
}
160
160
161
- if foundPipeline . Name == "" {
161
+ if foundPipeline == nil {
162
162
return c .String (http .StatusNotFound , err .Error ())
163
163
}
164
164
165
165
// Delete pipeline binary
166
- err = pipeline .DeleteBinary (foundPipeline )
166
+ err = pipeline .DeleteBinary (* foundPipeline )
167
167
if err != nil {
168
168
return c .String (http .StatusInternalServerError , err .Error ())
169
169
}
You can’t perform that action at this time.
0 commit comments