From 185720d528c7059f2967bbe287dcebfb46f09006 Mon Sep 17 00:00:00 2001 From: Billie Cleek Date: Sun, 15 Dec 2019 09:06:50 -0800 Subject: [PATCH] snippets: remove rew snippet Remove the rew snippet from UltiSnips snippets, because it only saves typing `return`; the `ew` snippet covers the `errors.Wrap` call sufficiently, and there aren't any other snippets for things like `returns fmt.Errorf`. --- gosnippets/UltiSnips/go.snippets | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/gosnippets/UltiSnips/go.snippets b/gosnippets/UltiSnips/go.snippets index 3ac66b5b40..f9629777fc 100644 --- a/gosnippets/UltiSnips/go.snippets +++ b/gosnippets/UltiSnips/go.snippets @@ -158,11 +158,6 @@ snippet ewf "errors.Wrapf" errors.Wrapf(${1:err}, "${2:message %v}", ${3:args...}) endsnippet -snippet rew "return errors.Wrap" b! -return errors.Wrap(${1:err}, "${2:message}") -endsnippet - - # error snippet snippet errn "Error return" !b if err != nil { @@ -451,7 +446,7 @@ for _, tt := range tests { endsnippet -snippet hf "http.HandlerFunc" !b +snippet hf "http.HandlerFunc" func ${1:handler}(w http.ResponseWriter, r *http.Request) { ${0:fmt.Fprintf(w, "hello world")} }