Skip to content

Commit c570125

Browse files
committed
Restore explicit type declaration to avoid disambiguation
1 parent 0d9f4be commit c570125

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WooCommerce/Classes/ViewRelated/Products/Edit Product/ProductFormRemoteActionUseCase.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ final class ProductFormRemoteActionUseCase {
5656
func duplicateProduct(originalProduct: EditableProductModel,
5757
password: String?,
5858
onCompletion: @escaping DuplicateProductCompletion) {
59-
let productModelToSave = {
59+
let productModelToSave: EditableProductModel = {
6060
let newName = String(format: Localization.copyProductName, originalProduct.name)
6161
let copiedProduct = originalProduct.product.copy(
6262
productID: 0,

0 commit comments

Comments
 (0)