Skip to content

Commit

Permalink
checkpoint
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Ortel <jortel@redhat.com>
  • Loading branch information
jortel committed Sep 20, 2024
1 parent f4bb2b3 commit aeb4472
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions api/analysis.go
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,12 @@ func (h AnalysisHandler) AppCreate(ctx *gin.Context) {
defer func() {
_ = f.Close()
}()
d, err = h.Decoder(ctx, file.Encoding, reader)
if err != nil {
err = &BadRequestError{err.Error()}
_ = ctx.Error(err)
return
}
for {
r := &Issue{}
err = d.Decode(r)
Expand Down Expand Up @@ -439,6 +445,12 @@ func (h AnalysisHandler) AppCreate(ctx *gin.Context) {
defer func() {
_ = f.Close()
}()
d, err = h.Decoder(ctx, file.Encoding, reader)
if err != nil {
err = &BadRequestError{err.Error()}
_ = ctx.Error(err)
return
}
var deps []*TechDependency
for {
r := &TechDependency{}
Expand Down

0 comments on commit aeb4472

Please sign in to comment.