From 4b320fe7e34723b8f07edda3935143c6b7323ba5 Mon Sep 17 00:00:00 2001 From: Fredrik Averpil Date: Mon, 2 Dec 2024 02:55:24 +0100 Subject: [PATCH] fix(go): "if err != nil" (`ir~`) (#522) The snippets in go.json works great, except this one. It causes an error. --- snippets/go.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/go.json b/snippets/go.json index 5f1fb609..02209ae0 100644 --- a/snippets/go.json +++ b/snippets/go.json @@ -116,7 +116,7 @@ }, "if err != nil": { "prefix": "ir", - "body": "if err != nil {\n\t${1:return ${2:nil, }${3:err}}\n}", + "body": "if err != nil {\n\treturn ${1:nil}, ${2:err}\n}", "description": "Snippet for if err != nil" }, "fmt.Println": {