Skip to content

Commit d5da190

Browse files
fix: remove redundant condition
1 parent a79222d commit d5da190

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

  • plugin-acl/plugin/grails-app/services/grails/plugin/springsecurity/acl

plugin-acl/plugin/grails-app/services/grails/plugin/springsecurity/acl/AclService.groovy

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -330,9 +330,7 @@ class AclService implements MutableAclService, WarnErros {
330330
@Transactional
331331
protected <T extends GormEntity<T>> T save(T bean) {
332332
if (!bean.save()) {
333-
if (log.warnEnabled) {
334-
log.warn errorsBeanBeingSaved(messageSource, bean)
335-
}
333+
log.warn errorsBeanBeingSaved(messageSource, bean)
336334
}
337335
bean
338336
}

0 commit comments

Comments
 (0)