Function
normalizeScanDescription
(description string, riskLevel string)
Source from the content-addressed store, hash-verified
| 1133 | } |
| 1134 | |
| 1135 | func normalizeScanDescription(description string, riskLevel string) string { |
| 1136 | description = strings.TrimSpace(description) |
| 1137 | if riskLevel == model.SkillRiskLevelHigh { |
| 1138 | return "" |
| 1139 | } |
| 1140 | return truncateByRunes(description, skillDescriptionMaxChars) |
| 1141 | } |
| 1142 | |
| 1143 | func resolvePersistedSkillDescription(rawDescription string, output *SkillScanOutput) string { |
| 1144 | rawDescription = strings.TrimSpace(rawDescription) |
Tested by
no test coverage detected