break if match

This commit is contained in:
2025-02-06 10:34:23 +01:00
parent 22da878f27
commit e18577b25a

View File

@@ -128,6 +128,7 @@ func ScrapeAd(fetch *Fetcher, uri string) error {
for _, detail := range advertisement.Details {
if slices.Contains(CONDITIONS, detail) {
advertisement.Condition = detail
break
}
}