Skip to content

Commit ca88c8c

Browse files
committed
fixup! Apply suggestions from code review
1 parent ceeaa05 commit ca88c8c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/lib/Repository/ContentService.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2532,9 +2532,9 @@ public function deleteTranslationFromDraft(APIVersionInfo $versionInfo, string $
25322532
public function hideContent(ContentInfo $contentInfo): void
25332533
{
25342534
// If ContentInfo is in draft state, mainLocationId is yet not set
2535-
$locationTarget = !$contentInfo->isDraft()
2536-
? [new DestinationLocationTarget($contentInfo->getMainLocationId(), $contentInfo)]
2537-
: [];
2535+
$locationTarget = $contentInfo->isDraft()
2536+
? []
2537+
: [new DestinationLocationTarget($contentInfo->getMainLocationId(), $contentInfo)];
25382538
if (!$this->permissionResolver->canUser(
25392539
'content',
25402540
'hide',

0 commit comments

Comments
 (0)