Skip to content

Commit

Permalink
Removed redundant doc parameter to Validation.create callback.
Browse files Browse the repository at this point in the history
  • Loading branch information
pkcs8 committed Oct 7, 2022
1 parent c5c0db3 commit ae6376b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/processors/ValidationMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ValidationMessage {

create(): boolean {
if (this.verify()) {
Validation.create(this._validation, (error, doc) => {
Validation.create(this._validation, (error) => {
if (error instanceof MongoServerError && error.code === 11000) {
}
else if (error) {
Expand Down

0 comments on commit ae6376b

Please sign in to comment.