Skip to content

Commit

Permalink
refactor: remove empty if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Gerig committed Jan 30, 2020
1 parent e6357a8 commit 84d25ad
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,7 @@ public function apply(Concrete $object, array $options): void
$object->setKey($key);
$parentPath = $this->correctPath($parentPath);

if ($options['skip_path_for_variant'] && $object->getType() === Concrete::OBJECT_TYPE_VARIANT) {

}
else {
if (!$options['skip_path_for_variant'] || $object->getType() !== Concrete::OBJECT_TYPE_VARIANT) {
$object->setParent(Service::createFolderByPath($parentPath));
}

Expand Down

0 comments on commit 84d25ad

Please sign in to comment.