jenkins-bot has submitted this change and it was merged.

Change subject: Remove unused variable and fix outdated comment
......................................................................


Remove unused variable and fix outdated comment

Change-Id: I0d70d49bbec6232c04ab7d43b0d9eca8cf0405d6
---
M maintenance/forceSearchIndex.php
1 file changed, 2 insertions(+), 3 deletions(-)

Approvals:
  Chad: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/maintenance/forceSearchIndex.php b/maintenance/forceSearchIndex.php
index 96bf61a..5717ad1 100644
--- a/maintenance/forceSearchIndex.php
+++ b/maintenance/forceSearchIndex.php
@@ -145,8 +145,8 @@
         * @param $minUpdate
         * @param $minId
         * @param $maxUpdate
-        * @return array An array of the last update timestamp, id, revision, 
and text that was found.
-        *    Sometimes rev and text are null - those record should be used to 
determine new
+        * @return array An array of the last update timestamp, id, and page 
that was found.
+        *    Sometimes page is null - those record should be used to determine 
new
         *    inputs for this function but should not by synced to the search 
index.
         */
        private function findUpdates( $minUpdate, $minId, $maxUpdate ) {
@@ -211,7 +211,6 @@
                                        $page = WikiPage::newFromID( 
$target->getArticleID(), WikiPage::READ_LATEST );
                                }
                        }
-                       $text = null;
                        $result[] = array(
                                'page' => $page,
                                'id' => $row->page_id,

-- 
To view, visit https://gerrit.wikimedia.org/r/91118
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I0d70d49bbec6232c04ab7d43b0d9eca8cf0405d6
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CirrusSearch
Gerrit-Branch: master
Gerrit-Owner: Chad <[email protected]>
Gerrit-Reviewer: Chad <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to