Skip to content

fix fmt.Errorf("%w", err) on err == nil#187

Merged
AkihiroSuda merged 1 commit intocontainerd:mainfrom
AkihiroSuda:fix-wrap
Oct 14, 2021
Merged

fix fmt.Errorf("%w", err) on err == nil#187
AkihiroSuda merged 1 commit intocontainerd:mainfrom
AkihiroSuda:fix-wrap

Conversation

@AkihiroSuda
Copy link
Member

When err is nil, fmt.Errorf("....: %w", err) should not be returned

Thanks to @simonflood for reporting this in rancher-sandbox/rancher-desktop#771 (comment)

When err is nil, `fmt.Errorf("....: %w", err)` should not be returned

Reported in rancher-sandbox/rancher-desktop issue 771

Signed-off-by: Akihiro Suda <[email protected]>
@AkihiroSuda
Copy link
Member Author

We should release v0.2.1 after merging this

Copy link
Member

@estesp estesp 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
Member

@cpuguy83 cpuguy83 left a comment

Choose a reason for hiding this comment

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

LGTM

@AkihiroSuda AkihiroSuda merged commit b6b5198 into containerd:main Oct 14, 2021
@AkihiroSuda
Copy link
Member Author

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants