Skip to content

Commit

Permalink
Merge pull request #104 from Sebbo94BY/Remove-unnecessary-if-condition
Browse files Browse the repository at this point in the history
Remove unnecessary if-condition
  • Loading branch information
Sebbo94BY authored Aug 27, 2023
2 parents 5b04aae + f41f05e commit 4e43f4b
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,6 @@ public function upsert(BannerConfigurationUpsertRequest $request): View|Redirect
unset($configuration);
}

// ignore the hidden configuration input row, which is by default empty
if (is_null($request->validated('configuration')['text'][$i])) {
continue;
}

$configuration['id'] = isset($request->validated('configuration')['banner_configuration_id'][$i]) ? $request->validated('configuration')['banner_configuration_id'][$i] : null;
$configuration['banner_template_id'] = $request->validated('banner_template_id');
$configuration['x_coordinate'] = $request->validated('configuration')['x_coordinate'][$i];
Expand Down

0 comments on commit 4e43f4b

Please sign in to comment.