Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add faillible methods #39

Merged
merged 1 commit into from
Apr 7, 2020
Merged

Conversation

hug-dev
Copy link
Member

@hug-dev hug-dev commented Apr 7, 2020

This commit modifies and adds methods to KeyAttributes:

  • if the method name is a declaration, the method will return a Result
    and log the error, so that it avoid duplication in the caller's code
  • if the method name is an interrogation, the method will return a bool
    and not log anything

Signed-off-by: Hugues de Valon hugues.devalon@arm.com

This commit modifies and adds methods to KeyAttributes:
* if the method name is a declaration, the method will return a Result
and log the error, so that it avoid duplication in the caller's code
* if the method name is an interrogation, the method will return a bool
and not log anything

Signed-off-by: Hugues de Valon <hugues.devalon@arm.com>
@hug-dev hug-dev added the enhancement New feature or request label Apr 7, 2020
@hug-dev hug-dev self-assigned this Apr 7, 2020
@hug-dev hug-dev requested a review from ionut-arm April 7, 2020 13:39
Copy link
Member

@ionut-arm ionut-arm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks for the changes! 💯

@hug-dev hug-dev merged commit 1f48dc0 into parallaxsecond:master Apr 7, 2020
@hug-dev hug-dev deleted the methods-result branch April 7, 2020 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants