Skip to content

Commit

Permalink
Merge pull request #411 from marcusramberg/marcus/fix_return
Browse files Browse the repository at this point in the history
  • Loading branch information
tboerger authored Oct 23, 2024
2 parents 4f88e2d + 3dad6ee commit b6731b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/action/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ func handler(cfg *config.Config, db store.Store, logger *slog.Logger, client *gi
w.WriteHeader(http.StatusInternalServerError)

io.WriteString(w, http.StatusText(http.StatusInternalServerError))
return
}

payload, err := github.ValidatePayload(
Expand All @@ -241,6 +242,7 @@ func handler(cfg *config.Config, db store.Store, logger *slog.Logger, client *gi
w.WriteHeader(http.StatusInternalServerError)

io.WriteString(w, http.StatusText(http.StatusInternalServerError))
return
}

event, err := github.ParseWebHook(
Expand All @@ -256,6 +258,7 @@ func handler(cfg *config.Config, db store.Store, logger *slog.Logger, client *gi
w.WriteHeader(http.StatusInternalServerError)

io.WriteString(w, http.StatusText(http.StatusInternalServerError))
return
}

switch event := event.(type) {
Expand Down

0 comments on commit b6731b5

Please sign in to comment.