Skip to content

Commit

Permalink
removed unused links derived from Incidents
Browse files Browse the repository at this point in the history
Signed-off-by: AdiAkhileshSingh15 <[email protected]>
  • Loading branch information
AdiAkhileshSingh15 committed Aug 20, 2023
1 parent 54d8d87 commit c888e9d
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions engine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -405,15 +405,6 @@ func (r *ruleEngine) createViolation(conditionResponse ConditionResponse, rule R
lineNumber := *m.LineNumber
incident.LineNumber = &lineNumber
}
links := []konveyor.Link{}
if len(m.Links) > 0 {
for _, l := range m.Links {
links = append(links, konveyor.Link{
URL: l.URL,
Title: l.Title,
})
}
}
// Some violations may not have a location in code.
limitSnip := (r.codeSnipLimit != 0 && fileCodeSnipCount[string(m.FileURI)] == r.codeSnipLimit)
if !limitSnip {
Expand Down

0 comments on commit c888e9d

Please sign in to comment.