remove unnecessary code

This commit is contained in:
Julie Lenaerts 2022-04-26 10:27:45 +02:00
parent f5efb07e3c
commit 51d1e5422b

View File

@ -1258,9 +1258,6 @@ class AccompanyingPeriod implements
*/
public function setPinnedComment(?Comment $comment = null): self
{
if (null !== $this->pinnedComment) {
$this->removeComment($this->pinnedComment);
}
if (null !== $this->pinnedComment) {
$this->addComment($this->pinnedComment);