refactor: remove unused min func
Signed-off-by: moveyield <moveyield@outlook.com>
This commit is contained in:
parent
5872e0f55e
commit
1299b20465
1 changed files with 0 additions and 7 deletions
|
|
@ -171,13 +171,6 @@ func (p *DuckDuckGoSearchProvider) extractResults(html string, count int, query
|
|||
return strings.Join(lines, "\n"), nil
|
||||
}
|
||||
|
||||
func min(a, b int) int {
|
||||
if a < b {
|
||||
return a
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
func stripTags(content string) string {
|
||||
re := regexp.MustCompile(`<[^>]+>`)
|
||||
return re.ReplaceAllString(content, "")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue