Commit 3e6e272
Remove redundant try-catch in JdbcChatMemoryRepository (#4288)
The inner method JdbcChatMemoryRepositoryDialect#from already contains
exception handling logic. The outer try-catch block is unnecessary and
can be safely removed to avoid redundant exception handling and improve
code clarity.
Fixes: #4288
Signed-off-by: eeaters <[email protected]>
(cherry picked from commit eda3c74)1 parent 7b6ac15 commit 3e6e272
File tree
1 file changed
+5
-15
lines changed- memory/repository/spring-ai-model-chat-memory-repository-jdbc/src/main/java/org/springframework/ai/chat/memory/repository/jdbc
1 file changed
+5
-15
lines changedLines changed: 5 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
| 221 | + | |
227 | 222 | | |
228 | 223 | | |
229 | 224 | | |
| |||
236 | 231 | | |
237 | 232 | | |
238 | 233 | | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
248 | 238 | | |
249 | 239 | | |
250 | 240 | | |
| |||
0 commit comments