don't handle unnecessary duplicate links

This commit is contained in:
Relentless 2022-09-17 19:42:48 +02:00
parent 08d3b2bdaa
commit bd8497f31c
No known key found for this signature in database
GPG key ID: 759D97B8C6F25265

View file

@ -112,7 +112,7 @@ public class RecipeTransformer {
}
for (RecipeLink recipeLink : duplicationConfig.isStrictMode() ? recipeLinks : unified) {
if (handleDuplicate(recipeLink, recipeLinks)) {
if (handleDuplicate(recipeLink, recipeLinks) && recipeLink.getDuplicateLink() != null) {
duplicates.add(recipeLink.getDuplicateLink());
}
}