Skip to content

Commit

Permalink
refactor: use a ternary operator
Browse files Browse the repository at this point in the history
  • Loading branch information
carlalexander committed Sep 6, 2024
1 parent 55d7703 commit 20db281
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Subscriber/DisallowIndexingSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@ public function displayAdminNotice()
*/
public function filterBlogPublic($value)
{
if ($this->usingVanityDomain) {
$value = 0;
}

return $value;
return !$this->usingVanityDomain ? $value : 0;
}
}

0 comments on commit 20db281

Please sign in to comment.