From c888e9db7c817604a487c2d5269db71ac18273c7 Mon Sep 17 00:00:00 2001 From: AdiAkhileshSingh15 Date: Sun, 20 Aug 2023 16:14:50 +0530 Subject: [PATCH] removed unused links derived from Incidents Signed-off-by: AdiAkhileshSingh15 --- engine/engine.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/engine/engine.go b/engine/engine.go index daad03c2..e5d0f2ee 100644 --- a/engine/engine.go +++ b/engine/engine.go @@ -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 {