Skip to content

Commit

Permalink
deleted duplicated line in style.md
Browse files Browse the repository at this point in the history
deleted duplicated line "- add context with `fmt.Errorf` and the `%v` verb"
  • Loading branch information
mihailstefanov committed Feb 20, 2024
1 parent 6faf782 commit 53e2142
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion style.md
Original file line number Diff line number Diff line change
Expand Up @@ -892,7 +892,6 @@ There are three main options for propagating errors if a call fails:

- return the original error as-is
- add context with `fmt.Errorf` and the `%w` verb
- add context with `fmt.Errorf` and the `%v` verb

Return the original error as-is if there is no additional context to add.
This maintains the original error type and message.
Expand Down

0 comments on commit 53e2142

Please sign in to comment.