Merge "Remove an unused piece of code from ApiVisualEditor"

This commit is contained in:
jenkins-bot 2019-12-18 10:30:22 +00:00 committed by Gerrit Code Review
commit 0d0ef6071f

View file

@ -296,7 +296,7 @@ class ApiVisualEditor extends ApiBase {
$wikitext = $params['wikitext'] ?? null;
if ( $wikitext !== null ) {
$stash = $params['stash'];
$section = $section = $params['section'] ?? null;
$section = $params['section'] ?? null;
if ( $params['pst'] ) {
$wikitext = $this->pstWikitext( $title, $wikitext );
}