modules/ve-mw/ui/widgets/ve.ui.MWEditSummaryWidget.js
Function getSummaries
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ve.ui.MWEditSummaryWidget.prototype.getSummaries = function () {
const splitSummary = this.constructor.static.splitSummary.bind( this.constructor.static );
if ( !this.getSummariesPromise ) {
if ( mw.user.isAnon() ) {
this.getSummariesPromise = ve.createDeferred().resolve( [] ).promise();