Skip to content

Commit

Permalink
style: remove extra parameters from "@static"
Browse files Browse the repository at this point in the history
The things that were defined there are set via other things anyway, and many did not even have it set
  • Loading branch information
hasezoey committed Jun 30, 2022
1 parent e57594c commit 1719bf6
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
24 changes: 12 additions & 12 deletions lib/error/index.js
Expand Up @@ -56,7 +56,7 @@ module.exports = exports = MongooseError;
* @see Error.messages #error_messages_MongooseError-messages
* @api public
* @memberOf Error
* @static messages
* @static
*/

MongooseError.messages = require('./messages');
Expand All @@ -73,7 +73,7 @@ MongooseError.Messages = MongooseError.messages;
*
* @api public
* @memberOf Error
* @static DocumentNotFoundError
* @static
*/

MongooseError.DocumentNotFoundError = require('./notFound');
Expand All @@ -84,7 +84,7 @@ MongooseError.DocumentNotFoundError = require('./notFound');
*
* @api public
* @memberOf Error
* @static CastError
* @static
*/

MongooseError.CastError = require('./cast');
Expand All @@ -96,7 +96,7 @@ MongooseError.CastError = require('./cast');
*
* @api public
* @memberOf Error
* @static ValidationError
* @static
*/

MongooseError.ValidationError = require('./validation');
Expand Down Expand Up @@ -131,7 +131,7 @@ MongooseError.ValidationError = require('./validation');
*
* @api public
* @memberOf Error
* @static ValidatorError
* @static
*/

MongooseError.ValidatorError = require('./validator');
Expand All @@ -143,7 +143,7 @@ MongooseError.ValidatorError = require('./validator');
*
* @api public
* @memberOf Error
* @static VersionError
* @static
*/

MongooseError.VersionError = require('./version');
Expand All @@ -155,7 +155,7 @@ MongooseError.VersionError = require('./version');
*
* @api public
* @memberOf Error
* @static ParallelSaveError
* @static
*/

MongooseError.ParallelSaveError = require('./parallelSave');
Expand All @@ -166,7 +166,7 @@ MongooseError.ParallelSaveError = require('./parallelSave');
*
* @api public
* @memberOf Error
* @static OverwriteModelError
* @static
*/

MongooseError.OverwriteModelError = require('./overwriteModel');
Expand All @@ -176,7 +176,7 @@ MongooseError.OverwriteModelError = require('./overwriteModel');
*
* @api public
* @memberOf Error
* @static MissingSchemaError
* @static
*/

MongooseError.MissingSchemaError = require('./missingSchema');
Expand All @@ -187,7 +187,7 @@ MongooseError.MissingSchemaError = require('./missingSchema');
*
* @api public
* @memberOf Error
* @static MongooseServerSelectionError
* @static
*/

MongooseError.MongooseServerSelectionError = require('./serverSelection');
Expand All @@ -198,7 +198,7 @@ MongooseError.MongooseServerSelectionError = require('./serverSelection');
*
* @api public
* @memberOf Error
* @static DivergentArrayError
* @static
*/

MongooseError.DivergentArrayError = require('./divergentArray');
Expand All @@ -210,7 +210,7 @@ MongooseError.DivergentArrayError = require('./divergentArray');
*
* @api public
* @memberOf Error
* @static StrictModeError
* @static
*/

MongooseError.StrictModeError = require('./strict');
2 changes: 1 addition & 1 deletion lib/error/messages.js
Expand Up @@ -16,7 +16,7 @@
*
* Click the "show code" link below to see all defaults.
*
* @static messages
* @static
* @receiver MongooseError
* @api public
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/model.js
Expand Up @@ -212,7 +212,7 @@ Model.prototype.baseModelName;
* @api public
* @fires error whenever any query or model function errors
* @memberOf Model
* @static events
* @static
*/

Model.events;
Expand Down
2 changes: 1 addition & 1 deletion lib/schema.js
Expand Up @@ -1874,7 +1874,7 @@ Schema.prototype.get = function(key) {
* The allowed index types
*
* @receiver Schema
* @static indexTypes
* @static
* @api public
*/

Expand Down
2 changes: 1 addition & 1 deletion lib/schema/array.js
Expand Up @@ -138,7 +138,7 @@ SchemaArray.schemaName = 'Array';
*
* - `castNonArrays`: `true` by default. If `false`, Mongoose will throw a CastError when a value isn't an array. If `true`, Mongoose will wrap the provided value in an array before casting.
*
* @static options
* @static
* @api public
*/

Expand Down

0 comments on commit 1719bf6

Please sign in to comment.