Skip to content

Commit

Permalink
Merge pull request #568 from extcode/bugfix/remove_unnecessary_check_…
Browse files Browse the repository at this point in the history
…in_condition

[BUGFIX] Remove unnecessary check in condition
  • Loading branch information
extcode authored Sep 30, 2024
2 parents 096362b + 79d7d39 commit 7807a3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/ViewHelpers/AdditionalJsonViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function render(): string
if (is_string($data)) {
$data = json_decode($data, true);

if (!$data || empty($data)) {
if (empty($data)) {
return 'Parameter additional seems to be an invalid JSON string!';
}
}
Expand Down

0 comments on commit 7807a3c

Please sign in to comment.