From 53e2142bd1a72778156d7fc6e9372c903c48787e Mon Sep 17 00:00:00 2001 From: Mihail Date: Tue, 20 Feb 2024 18:16:33 +0200 Subject: [PATCH] deleted duplicated line in style.md deleted duplicated line "- add context with `fmt.Errorf` and the `%v` verb" --- style.md | 1 - 1 file changed, 1 deletion(-) diff --git a/style.md b/style.md index 21a1733a..ec5b6443 100644 --- a/style.md +++ b/style.md @@ -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.