Skip to content

Commit

Permalink
fix missing returns
Browse files Browse the repository at this point in the history
  • Loading branch information
jessepeterson committed Aug 11, 2023
1 parent 215ec5c commit bc55bae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions http/ddm/ddm.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ func DeclarationHandler(store storage.DeclarationRetriever, hLogger log.Logger)
ctx, logger, enrollmentID, err := contextEnrollmentID(r, hLogger)
if err != nil {
ErrorAndLog(w, http.StatusBadRequest, logger, "getting enrollment id", err)
return
}
declarationType, declarationID, err := parseDeclarationPath(r.URL.Path)
if err != nil {
Expand Down Expand Up @@ -100,6 +101,7 @@ func TokensOrDeclarationItemsHandler(store storage.TokensDeclarationItemsRetriev
ctx, logger, enrollmentID, err := contextEnrollmentID(r, hLogger)
if err != nil {
ErrorAndLog(w, http.StatusBadRequest, logger, "getting enrollment id", err)
return
}
var op string
var rawJSON []byte
Expand Down Expand Up @@ -129,6 +131,7 @@ func StatusReportHandler(store storage.StatusStorer, hLogger log.Logger) http.Ha
ctx, logger, enrollmentID, err := contextEnrollmentID(r, hLogger)
if err != nil {
ErrorAndLog(w, http.StatusBadRequest, logger, "getting enrollment id", err)
return
}
bodyBytes, err := io.ReadAll(r.Body)
if err != nil {
Expand Down

0 comments on commit bc55bae

Please sign in to comment.