Skip to content

teams: less base safe calls is more (fixes #11233)#11187

Merged
dogi merged 3 commits intomasterfrom
remove-safe-call-baseteamfragment-9333124544557771140
Feb 10, 2026
Merged

teams: less base safe calls is more (fixes #11233)#11187
dogi merged 3 commits intomasterfrom
remove-safe-call-baseteamfragment-9333124544557771140

Conversation

@dogi
Copy link
Member

@dogi dogi commented Feb 5, 2026

Removed the safe call operator ?. from profileDbHandler?.userModel in BaseTeamFragment.kt. profileDbHandler is a non-null lateinit var (UserSessionManager) inherited from BaseResourceFragment, making the safe call unnecessary. This aligns with Kotlin best practices for non-nullable properties.


PR created automatically by Jules for task 9333124544557771140 started by @dogi

The `profileDbHandler` property is injected as a non-nullable `lateinit var` in the parent `BaseResourceFragment`. Therefore, using the safe call operator `?.` when accessing `userModel` in `BaseTeamFragment` is redundant. This commit replaces `profileDbHandler?.userModel` with `profileDbHandler.userModel` to clean up the code.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
@google-labs-jules
Copy link
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@dogi dogi marked this pull request as ready for review February 5, 2026 18:15
@dogi dogi changed the title Remove unnecessary safe call in BaseTeamFragment teams: less base safe calls is more (fixes #11233) Feb 10, 2026
@dogi dogi merged commit f77677a into master Feb 10, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants