Add missing return (#2316)

This commit is contained in:
Pablo Ovelleiro Corral 2023-08-22 09:47:29 +02:00 committed by GitHub
parent 4de8cbec76
commit cf9a4be128
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -456,6 +456,7 @@ func PostPipeline(c *gin.Context) {
netrc, err := server.Config.Services.Forge.Netrc(user, repo)
if err != nil {
handlePipelineErr(c, err)
return
}
newpipeline, err := pipeline.Restart(c, _store, pl, user, repo, envs, netrc)