File tree 1 file changed +1
-7
lines changed
web/src/main/java/org/springframework/security/web/webauthn/management
1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change 28
28
import java .util .Set ;
29
29
import java .util .function .Function ;
30
30
31
- import org .springframework .dao .DuplicateKeyException ;
32
31
import org .springframework .jdbc .core .ArgumentPreparedStatementSetter ;
33
32
import org .springframework .jdbc .core .JdbcOperations ;
34
33
import org .springframework .jdbc .core .PreparedStatementSetter ;
@@ -154,12 +153,7 @@ public void save(CredentialRecord record) {
154
153
Assert .notNull (record , "record cannot be null" );
155
154
int rows = updateCredentialRecord (record );
156
155
if (rows == 0 ) {
157
- try {
158
- insertCredentialRecord (record );
159
- }
160
- catch (DuplicateKeyException ex ) {
161
- updateCredentialRecord (record );
162
- }
156
+ insertCredentialRecord (record );
163
157
}
164
158
}
165
159
You can’t perform that action at this time.
0 commit comments