brainer3220 / brainer3220/ITmmunity
Fix 'Parentheses in (context as? Activity) are unnecessary and can be replaced with: context as? Activity' issue in app\src\main\java\com\brainer\itmmunity\componant\AppBar.kt
- Dominant language
- Kotlin
- Stars
- 0
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
[CodeFactor](https://www.codefactor.io/repository/github/brainer3220/itmmunity) found an issue: Parentheses in (context as? Activity) are unnecessary and can be replaced with: context as? Activity
It's currently on:
[app\src\main\java\com\brainer\itmmunity\componant\AppBar.kt:163](https://www.codefactor.io/repository/github/brainer3220/itmmunity/source/master/app/src/main/java/com/brainer/itmmunity/componant/AppBar.kt#L163)
Commit 95569f15256f92e93b06906642316df65d6253d8
Contributor guide
No contributing guide indexed for this repository
Research direction
Open app/src/main/java/com/brainer/itmmunity/componant/AppBar.kt at line 163 and inspect the CodeFactor finding for the context cast. Confirm the unnecessary parentheses can be removed without changing the expression, then verify the Kotlin file still builds and the warning is gone.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Refactor
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100