Merge "Simplify client-side translateObsoleteParamTypes implementation"

This commit is contained in:
jenkins-bot 2023-09-21 06:18:34 +00:00 committed by Gerrit Code Review
commit 10e1c26580

View file

@ -100,16 +100,7 @@ Model.static.compare = function ( obj1, obj2, allowSubset ) {
* @return {string} Normalized non-obsolete type
*/
Model.static.translateObsoleteParamTypes = function ( paramType ) {
switch ( paramType ) {
case 'string/wiki-page-name':
return 'wiki-page-name';
case 'string/wiki-file-name':
return 'wiki-file-name';
case 'string/wiki-user-name':
return 'wiki-user-name';
default:
return paramType;
}
return paramType.replace( /^string\//, '' );
};
/**