Skip to content

Refactor UserAssetActivity for readability and efficiency#3781

Merged
2dust merged 1 commit into2dust:masterfrom
codewithtamim:fix/improve-user-asset-activity
Oct 25, 2024
Merged

Refactor UserAssetActivity for readability and efficiency#3781
2dust merged 1 commit into2dust:masterfrom
codewithtamim:fix/improve-user-asset-activity

Conversation

@codewithtamim
Copy link
Copy Markdown
Contributor

  • Refactored the onOptionsItemSelected function to use when and let for cleaner conditional logic.
  • Simplified the chooseFile function with runCatching for better error handling.
  • Extracted repeated code into reusable functions to improve maintainability.
  • Improved coroutine handling by ensuring file I/O happens on the IO thread.

- Refactored the onOptionsItemSelected function to use `when` and `let` for cleaner conditional logic.
- Simplified the `chooseFile` function with `runCatching` for better error handling.
- Extracted repeated code into reusable functions to improve maintainability.
- Improved coroutine handling by ensuring file I/O happens on the IO thread.
@2dust 2dust merged commit 82087e1 into 2dust:master Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants