Skip to content

Commit e7070f4

Browse files
committed
Removed redundant code
1 parent e2b568b commit e7070f4

File tree

1 file changed

+2
-3
lines changed
  • src/Symfony/Cmf/Component/Testing/Functional/DbManager

1 file changed

+2
-3
lines changed

src/Symfony/Cmf/Component/Testing/Functional/DbManager/PHPCR.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public function getOm()
3030
if (!$this->om) {
3131
$this->om = $this->getRegistry()->getManager();
3232
}
33+
3334
return $this->om;
3435
}
3536

@@ -84,9 +85,7 @@ public function createTestNode()
8485
$session->getNode('/test')->remove();
8586
}
8687

87-
if (! $session->nodeExists('/test')) {
88-
$session->getRootNode()->addNode('test', 'nt:unstructured');
89-
}
88+
$session->getRootNode()->addNode('test', 'nt:unstructured');
9089

9190
$session->save();
9291
}

0 commit comments

Comments
 (0)