Skip to content

Commit

Permalink
chore: Fix linter issues in cloud sync reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
abhisek committed Aug 6, 2023
1 parent 1cfd346 commit ed2b547
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkg/reporter/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ func (s *syncReporter) Name() string {
}

func (s *syncReporter) AddManifest(manifest *models.PackageManifest) {
readers.NewManifestModelReader(manifest).EnumPackages(func(pkg *models.Package) error {
// We are ignoring the error here because we are asynchronously handling the sync of Manifest
_ = readers.NewManifestModelReader(manifest).EnumPackages(func(pkg *models.Package) error {

s.queuePackageDependencyIssue(manifest, pkg)
s.queuePackageMetadataIssue(manifest, pkg)
Expand Down Expand Up @@ -160,7 +161,10 @@ func (s *syncReporter) syncReportWorker() {
for {
select {
case issue := <-s.issueChannel:
s.syncReportIssue(issue)
err := s.syncReportIssue(issue)
if err != nil {
logger.Errorf("failed to sync issue: %v", err)
}
case <-s.done:
return
}
Expand Down

0 comments on commit ed2b547

Please sign in to comment.