From 3bd1f3388a50b13b83c1826a126f0cd993a49f8a Mon Sep 17 00:00:00 2001 From: Pablo Ovelleiro Corral Date: Tue, 22 Aug 2023 09:28:49 +0200 Subject: [PATCH] Add missing return --- server/api/pipeline.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/api/pipeline.go b/server/api/pipeline.go index 5a64d2db1dd..77a8eaf19dd 100644 --- a/server/api/pipeline.go +++ b/server/api/pipeline.go @@ -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)