Skip to content

Commit

Permalink
minor #9756 [Config] Removed duplicated condition (gnugat)
Browse files Browse the repository at this point in the history
This PR was submitted for the 2.4-dev branch but it was merged into the 2.4 branch instead (closes #9756).

Discussion
----------

[Config] Removed duplicated condition

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | none
| License       | MIT
| Doc PR        | none

Removed unnecessary condition (looks like it's been copy/pasted from
line 84).

Commits
-------

5c9dd30 [Config] Removed duplicated condition
  • Loading branch information
fabpot committed Dec 14, 2013
2 parents b3afa8d + e1fe327 commit aff0594
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -97,7 +97,7 @@ private function writeNode(NodeInterface $node, $depth = 0)
$default = $node->getDefaultValue();

if (is_array($default)) {
if ($node->hasDefaultValue() && count($defaultArray = $node->getDefaultValue())) {
if (count($defaultArray = $node->getDefaultValue())) {
$default = '';
} elseif (!is_array($example)) {
$default = '[]';
Expand Down

0 comments on commit aff0594

Please sign in to comment.