Skip to content

Commit

Permalink
Invert empty if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Dec 22, 2022
1 parent 9f62dd3 commit 031bfc4
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ protected function captureFieldsDefinitions(): Collection

$type = $this->getFieldType();

if ($type < 10) {
} else {
if ($type === 10) {
$fieldData = $this->getFieldDataForTag($fieldData);
}
$addAnother = $this->askWithValidation('addAnother', '<bg=magenta;fg=white>Add another field (y/n)</>', ['required', 'string', 'in:y,n'], 'n');
Expand Down

0 comments on commit 031bfc4

Please sign in to comment.