Skip to content

Unnecessary and confusing use of _currentUser variable #1167

@juampiq6

Description

@juampiq6

Hi team,
[context] -> gotrue package -> gotrue_client.dart

I found out that the_currentUser variable was being assigned as a copy of what _currentSession.user is already storing. I find it confusing for it to be a copied value when non needed. Unless I'm missing something, but I couldnt find other usages in the code.

I'm making a PR to solve this simple confusion.

Hope it helps.
Cheers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions