Skip to content

[Feature] Return false when error occured #2

Description

@oliveiraa

Whenever a token is not added, or any error of that nature happens, false should be returned by the addToken method.

It's currently returning the object it did create, but was not able to add. Which can be misleading and doesn't allow the calling code to easily know if it succeeded or not.

Thanks,

Alvaro Oliveira.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions