Skip to content

Commit

Permalink
optimize code
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Apr 10, 2024
1 parent 092eb7c commit eec184c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Generator/Python.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,7 @@ protected function writeStruct(Code\Name $name, array $properties, ?string $exte
}
}

if (!empty($parts)) {
$code.= '(' . implode(', ', $parts) . ')';
}

$code.= ':' . "\n";
$code.= '(' . implode(', ', $parts) . '):' . "\n";

foreach ($properties as $property) {
/** @var Code\Property $property */
Expand Down

0 comments on commit eec184c

Please sign in to comment.