-
Notifications
You must be signed in to change notification settings - Fork 334
fix: properly handles exception for weapon data serialization #6906
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: properly handles exception for weapon data serialization #6906
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6906 +/- ##
============================================
- Coverage 30.20% 30.19% -0.01%
+ Complexity 15713 15711 -2
============================================
Files 2884 2884
Lines 283119 283157 +38
Branches 49302 49308 +6
============================================
- Hits 85510 85507 -3
- Misses 192000 192038 +38
- Partials 5609 5612 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
|
||
| return map; | ||
| } catch (Exception e) { | ||
| logger.error(e, "Error while trying to serialize Weapon {} data for {}", weapon, entity); |
Check warning
Code scanning / CodeQL
Unused format argument Warning
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a false positive
|
|
||
| return map; | ||
| } catch (Exception e) { | ||
| logger.error(e, "Error while trying to serialize Weapon {} data for {}", weapon, entity); |
Check warning
Code scanning / CodeQL
Unused format argument Warning
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a false positive
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a fan of adding duplication but there isn't a way not to at this time.
Can be part of later re-factors.
What it does?
Handles exceptions gracefully.
Improvements to do
Remove the code duplication, to be done at a later date.