remove unnecessary code
authorJoshua Rüsweg <josh@joshsboard.de>
Thu, 20 Mar 2014 17:31:13 +0000 (18:31 +0100)
committerJoshua Rüsweg <josh@joshsboard.de>
Thu, 20 Mar 2014 17:31:13 +0000 (18:31 +0100)
getComment() returns always null if the comment is invalid, so it mustn't be checked

wcfsetup/install/files/lib/system/moderation/queue/report/CommentCommentModerationQueueReportHandler.class.php

index 0be0e8f670a7c3ea7cadbad4bf6c57017d381135..c82cec53b8d5ae0e584c526e0e62d58372b4c326 100644 (file)
@@ -134,11 +134,7 @@ class CommentCommentModerationQueueReportHandler extends AbstractModerationQueue
         * @see \wcf\system\moderation\queue\report\IModerationQueueReportHandler::getReportedObject()
         */
        public function getReportedObject($objectID) {
-               if ($this->isValid($objectID)) {
-                       return $this->getComment($objectID);
-               }
-               
-               return null;
+               return $this->getComment($objectID);
        }
        
        /**