Skip to content

Commit

Permalink
Removed duplicated string
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaderi committed Aug 6, 2024
1 parent 04642c2 commit 0162f2f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/lua/flow_details.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1478,9 +1478,10 @@ else

print(string.format('<tr>'))

local msg = string.format('<td> %s </td><td style=\"text-align: center;\"> %s </td><td style=\"text-align: center;\"> %s </td><td> %s %s %s %s </td>', score_alert.message, score_alert.score,alert_source, riskLabel,
riskLabel, (score_alert.alert_risk > 0 and flow_risk_utils.get_documentation_link(score_alert.alert_risk)) or '',
status_icon or '', flow_risk_utils.get_remediation_documentation_link(score_alert.alert_id))
local msg = string.format('<td> %s </td><td style=\"text-align: center;\"> %s </td><td style=\"text-align: center;\"> %s </td><td> %s %s %s %s </td>',
score_alert.message, score_alert.score,alert_source,
riskLabel, (score_alert.alert_risk > 0 and flow_risk_utils.get_documentation_link(score_alert.alert_risk)) or '',
status_icon or '', flow_risk_utils.get_remediation_documentation_link(score_alert.alert_id))


print(msg)
Expand Down

0 comments on commit 0162f2f

Please sign in to comment.