Skip to content

Commit

Permalink
Merge branch 'IslandRhythms/gh-9583' of github.com:Automattic/mongoos…
Browse files Browse the repository at this point in the history
…e into IslandRhythms/gh-9583
  • Loading branch information
vkarpov15 committed Mar 20, 2024
2 parents 5950c86 + ebedffc commit aeb061e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lib/document.js
Expand Up @@ -2933,11 +2933,12 @@ Document.prototype.$__validate = function(pathsToValidate, options, callback) {
let total = 0;

for (const path of paths) {
if (_this.$__.saveOptions && _this.$__.saveOptions.pathsToSave) {
if (!_this.$__.saveOptions.pathsToSave.includes(path)) {
continue;
}
}
if (

Check failure on line 2936 in lib/document.js

View workflow job for this annotation

GitHub Actions / Lint JS-Files

Expected indentation of 4 spaces but found 0

Check failure on line 2936 in lib/document.js

View workflow job for this annotation

GitHub Actions / Lint JS-Files

Expected indentation of 4 spaces but found 0
Array.isArray(_this.$__.saveOptions?.pathsToSave) &&

Check failure on line 2937 in lib/document.js

View workflow job for this annotation

GitHub Actions / Lint JS-Files

Expected indentation of 6 spaces but found 2

Check failure on line 2937 in lib/document.js

View workflow job for this annotation

GitHub Actions / Lint JS-Files

Expected indentation of 6 spaces but found 2
_this.$__.saveOptions.pathsToSave.includes(path) === false
) {

Check failure on line 2939 in lib/document.js

View workflow job for this annotation

GitHub Actions / Lint JS-Files

Expected indentation of 4 spaces but found 2

Check failure on line 2939 in lib/document.js

View workflow job for this annotation

GitHub Actions / Lint JS-Files

Expected indentation of 4 spaces but found 2
continue;

Check failure on line 2940 in lib/document.js

View workflow job for this annotation

GitHub Actions / Lint JS-Files

Expected indentation of 6 spaces but found 4

Check failure on line 2940 in lib/document.js

View workflow job for this annotation

GitHub Actions / Lint JS-Files

Expected indentation of 6 spaces but found 4
}

Check failure on line 2941 in lib/document.js

View workflow job for this annotation

GitHub Actions / Lint JS-Files

Expected indentation of 4 spaces but found 0

Check failure on line 2941 in lib/document.js

View workflow job for this annotation

GitHub Actions / Lint JS-Files

Expected indentation of 4 spaces but found 0
validatePath(path);
}

Expand Down

0 comments on commit aeb061e

Please sign in to comment.