Skip to content

Commit bf63f92

Browse files
committed
Polish Tests
Issue gh-17298
1 parent 8fd67a5 commit bf63f92

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

config/src/test/java/org/springframework/security/config/annotation/authentication/AuthenticationManagerBuilderTests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,7 @@ AuthenticationManager authenticationManager() throws Exception {
241241

242242
@Bean
243243
AuthenticationProvider authenticationProvider() throws Exception {
244-
DaoAuthenticationProvider provider = new DaoAuthenticationProvider(userDetailsService());
245-
return provider;
244+
return new DaoAuthenticationProvider(userDetailsService());
246245
}
247246

248247
@Bean

0 commit comments

Comments
 (0)