Skip to content

Commit 462fb19

Browse files
authored
Merge pull request #1838 from jdaugherty/feature/9.0.x/1155-skip-validate
2 parents 165eb79 + ac3fb74 commit 462fb19

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

grails-datastore-gorm/src/main/groovy/org/grails/datastore/gorm/GormValidateable.groovy

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,7 @@ trait GormValidateable {
6767
* @return True if the instance is valid
6868
*/
6969
boolean validate(Map arguments) {
70-
if(!shouldSkipValidation()) {
71-
currentGormValidationApi().validate this, arguments
72-
} else {
73-
return true
74-
}
70+
currentGormValidationApi().validate this, arguments
7571
}
7672

7773
/**
@@ -81,11 +77,7 @@ trait GormValidateable {
8177
* @return True if the instance is valid
8278
*/
8379
boolean validate(List fields) {
84-
if(!shouldSkipValidation()) {
85-
currentGormValidationApi().validate this, fields
86-
} else {
87-
return true
88-
}
80+
currentGormValidationApi().validate this, fields
8981
}
9082

9183
/**

0 commit comments

Comments
 (0)