-
Notifications
You must be signed in to change notification settings - Fork 3
Fbe/apex porting #34
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
base: develop
Are you sure you want to change the base?
Fbe/apex porting #34
Conversation
8177559 to
4a2ffe2
Compare
| if (err != zxerr_ok) { | ||
| // Show error | ||
| view_error_show(); | ||
| // h_rootTxn(); |
Check notice
Code scanning / CodeQL
Commented-out code
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 3 months ago
To fix this issue, simply remove the commented-out code // h_rootTxn();. This will clean up the code, eliminate confusion, and ensure that only active logic remains in the error handling block. No change to program functionality will occur, as the code is already commented and not executed. Edit deps/ledger-zxlib/app/ui/view_inspect_x.c, specifically on line 84 within the inspect_init function, and delete the line containing the commented-out code.
| @@ -81,7 +81,6 @@ | ||
| if (err != zxerr_ok) { | ||
| // Show error | ||
| view_error_show(); | ||
| // h_rootTxn(); | ||
| return; | ||
| } | ||
| view_inspect_show_impl(); |
| static const char *review_skip_value_msg = "not verifiable"; | ||
| static const char *review_skip_key_msg_2 = "Could lose"; | ||
| static const char *review_skip_value_msg_2 = "all assets"; | ||
| static const char *review_msgvalue = "Review"; |
Check notice
Code scanning / CodeQL
Unused static variable
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 3 months ago
To fix the problem, remove the declaration of the unused static variable review_msgvalue from deps/ledger-zxlib/app/ui/view_internal.h. Only delete the line declaring the variable. This will increase code clarity and prevent unused storage consumption or future confusion. No additional imports, method definitions, or code changes are necessary elsewhere in the file.
| @@ -90,7 +90,6 @@ | ||
| static const char *review_skip_value_msg = "not verifiable"; | ||
| static const char *review_skip_key_msg_2 = "Could lose"; | ||
| static const char *review_skip_value_msg_2 = "all assets"; | ||
| static const char *review_msgvalue = "Review"; | ||
| static const char *review_msgvalue_2 = "Message"; | ||
|
|
||
| // Review msg string can be customizable in each app |
| static const char *review_skip_key_msg_2 = "Could lose"; | ||
| static const char *review_skip_value_msg_2 = "all assets"; | ||
| static const char *review_msgvalue = "Review"; | ||
| static const char *review_msgvalue_2 = "Message"; |
Check notice
Code scanning / CodeQL
Unused static variable
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 3 months ago
To fix this issue, the unused static variable review_msgvalue_2 should be removed from the code. This will improve code clarity, prevent confusion, and contribute to reducing unnecessary static data in the program. The only change needed is to delete, from deps/ledger-zxlib/app/ui/view_internal.h, the line that declares static const char *review_msgvalue_2 = "Message"; (line 94). No other definitions, imports, or references need to be updated, and no additional code is required.
| @@ -91,7 +91,6 @@ | ||
| static const char *review_skip_key_msg_2 = "Could lose"; | ||
| static const char *review_skip_value_msg_2 = "all assets"; | ||
| static const char *review_msgvalue = "Review"; | ||
| static const char *review_msgvalue_2 = "Message"; | ||
|
|
||
| // Review msg string can be customizable in each app | ||
| #if !defined(REVIEW_MSG_TITLE) && !defined(REVIEW_MSG_VALUE) |
0603208 to
536adc6
Compare
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. Thanks for integrating Codecov - We've got you covered ☂️ |
No description provided.