mirror of
https://codeberg.org/scip/kleingebaeck.git
synced 2025-12-18 04:51:02 +01:00
break if match
This commit is contained in:
@@ -128,6 +128,7 @@ func ScrapeAd(fetch *Fetcher, uri string) error {
|
|||||||
for _, detail := range advertisement.Details {
|
for _, detail := range advertisement.Details {
|
||||||
if slices.Contains(CONDITIONS, detail) {
|
if slices.Contains(CONDITIONS, detail) {
|
||||||
advertisement.Condition = detail
|
advertisement.Condition = detail
|
||||||
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user