Skip to content

Commit

Permalink
fix(go): "if err != nil" (ir~) (#522)
Browse files Browse the repository at this point in the history
The snippets in go.json works great, except this one. It causes an error.
  • Loading branch information
fredrikaverpil authored Dec 2, 2024
1 parent 59c1813 commit 4b320fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snippets/go.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 4b320fe

Please sign in to comment.