Skip to content

Commit 3a7ae91

Browse files
committed
magento/graphql-ce# Remove redundant logic in createCustomer mutation
1 parent efd77d3 commit 3a7ae91

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

app/code/Magento/CustomerGraphQl/Model/Resolver/CreateCustomer.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,6 @@ public function resolve(
6363
array $value = null,
6464
array $args = null
6565
) {
66-
if (empty($args['input']) || !is_array($args['input'])) {
67-
throw new GraphQlInputException(__('"input" value should be specified'));
68-
}
69-
7066
if (!$this->newsLetterConfig->isActive(ScopeInterface::SCOPE_STORE)) {
7167
$args['input']['is_subscribed'] = false;
7268
}

0 commit comments

Comments
 (0)