Removing duplicated validation

This commit is contained in:
weryques 2017-12-12 12:11:50 -02:00
parent b9ef55c21f
commit 876bd47539
1 changed files with 0 additions and 1 deletions

View File

@ -108,7 +108,6 @@ class Entity_Factory {
$this->entity->set_description( 'It is only for test' ); $this->entity->set_description( 'It is only for test' );
} }
$this->entity->validate();
if ($this->entity->validate()) { if ($this->entity->validate()) {
$this->entity = $this->repository->insert( $this->entity ); $this->entity = $this->repository->insert( $this->entity );
} else { } else {