Merge "Remove redundant checks"

This commit is contained in:
jenkins-bot 2021-10-14 16:02:32 +00:00 committed by Gerrit Code Review
commit aa8ed1d469
2 changed files with 2 additions and 2 deletions

View file

@ -19,7 +19,7 @@ function ReplyLinksController( $pageContainer ) {
// "Add topic" link in the skin interface
var featuresEnabled = mw.config.get( 'wgDiscussionToolsFeaturesEnabled' ) || {};
if ( featuresEnabled.newtopictool && mw.user.options.get( 'discussiontools-newtopictool' ) ) {
if ( featuresEnabled.newtopictool ) {
// eslint-disable-next-line no-jquery/no-global-selector
var $addSectionTab = $( '#ca-addsection' );
if ( $addSectionTab.length ) {

View file

@ -444,7 +444,7 @@ function init( $container, state ) {
}
}
if ( featuresEnabled.topicsubscription && mw.user.options.get( 'discussiontools-topicsubscription' ) ) {
if ( featuresEnabled.topicsubscription ) {
initTopicSubscriptions( $container );
}