Skip to content

Commit 2b75c61

Browse files
author
salander85
committed
Formatting
1 parent ee1cf64 commit 2b75c61

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

src/main/java/com/commercetools/sync/commons/helpers/BaseBatchValidator.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import static org.apache.commons.lang3.StringUtils.isBlank;
44

55
import com.commercetools.api.models.common.AssetDraft;
6-
import com.commercetools.api.models.common.Reference;
76
import com.commercetools.api.models.common.ResourceIdentifier;
87
import com.commercetools.api.models.customer.CustomerDraft;
98
import com.commercetools.api.models.type.CustomFieldsDraft;
@@ -70,14 +69,6 @@ protected void collectReferencedKeysFromAssetDrafts(
7069
}
7170
}
7271

73-
protected <T> void collectReferencedKeyFromReference(
74-
@Nullable final Reference reference, @Nonnull final Consumer<String> keyInReferenceSupplier) {
75-
76-
if (reference != null && !isBlank(reference.getId())) {
77-
keyInReferenceSupplier.accept(reference.getId());
78-
}
79-
}
80-
8172
protected void handleError(@Nonnull final SyncException syncException) {
8273
this.syncOptions.applyErrorCallback(syncException);
8374
this.syncStatistics.incrementFailed();

0 commit comments

Comments
 (0)