Skip to content

Commit

Permalink
reuse code more
Browse files Browse the repository at this point in the history
  • Loading branch information
ianmcorvidae committed Sep 23, 2024
1 parent ba17c1c commit 83a5527
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -480,14 +480,10 @@ func main() {
}

for _, j := range jl {
analysisRecordExists := vicedb.AnalysisRecordExists(ctx, j.ID)

if !analysisRecordExists {
if _, err = vicedb.AddNotifRecord(ctx, &j); err != nil {
log.Error(err)
span.End()
continue
}
if err = ensureNotifRecord(ctx, vicedb, j); err != nil {
log.Error(err)
span.End()
continue
}

var notifStatuses *NotifStatuses
Expand Down

0 comments on commit 83a5527

Please sign in to comment.