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

feat: add ErrorOrNil #41

Merged
merged 2 commits into from
Dec 14, 2021
Merged

feat: add ErrorOrNil #41

merged 2 commits into from
Dec 14, 2021

Conversation

yag13s
Copy link
Contributor

@yag13s yag13s commented Dec 12, 2021

Pull Request Template

Description

add ErrorOrNil on issue No.39.

We have taken this action for now, but we believe that the next version (1.1.0 or later) will require a fundamental solution.

# (issue No.39)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Integration test
  • Unit test

Test Configuration:

  • Firmware version:
  • Hardware:
  • Toolchain:
  • SDK:

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have checked my code and corrected any misspellings

@yag13s yag13s added the bug Something isn't working label Dec 12, 2021
@yag13s yag13s self-assigned this Dec 12, 2021
@yag13s yag13s added this to the v1.0.1 milestone Dec 12, 2021
@yag13s yag13s added this to In progress in Development via automation Dec 12, 2021
@@ -118,6 +148,12 @@ func (e *errs) As(target interface{}) bool {
}

func (e *errs) PrettyPrint() {
if e == nil {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

badge
This logic is not work. ( It's not a bug, but a fundamental problem that needs to be solved. )

@@ -10,6 +10,10 @@ import (
"github.com/stretchr/testify/assert"
)

type somethingError struct{}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was just curious about the order.

Development automation moved this from In progress to Reviewer approved Dec 14, 2021
Copy link
Contributor

@ss49919201 ss49919201 left a comment

Choose a reason for hiding this comment

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

Thank you 🤙

Copy link
Contributor

@A-ichi11 A-ichi11 left a comment

Choose a reason for hiding this comment

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

LGTM❄️

Copy link

@GenkiHirano GenkiHirano left a comment

Choose a reason for hiding this comment

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

LGTM 🐱

@yag13s yag13s merged commit e33b36c into gemcook:main Dec 14, 2021
Development automation moved this from Reviewer approved to Done Dec 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

Successfully merging this pull request may close these issues.

None yet

4 participants