Commit a087ab0
committed
Add validation for parameter conversion in InlineQueryHandler
Previously, parameter conversion in InlineQueryHandler.cs did not check for success, potentially leading to errors. The updated code now verifies the conversion result with a `bool` variable `converted`. Only if `converted` is `true`, it clears and re-adds the arguments to `_args` and returns the method, ensuring the method is only returned if the conversion is successful.1 parent f160885 commit a087ab0
1 file changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
63 | 66 | | |
64 | 67 | | |
65 | 68 | | |
| |||
0 commit comments