chore: update go snippets
This commit is contained in:
parent
e76fe9dc65
commit
1415109e47
1 changed files with 2 additions and 2 deletions
|
|
@ -14,9 +14,9 @@ ls.add_snippets("go", {
|
|||
|
||||
s("err", fmt([[
|
||||
if err != nil {{
|
||||
return err
|
||||
return {}
|
||||
}}
|
||||
]], {})),
|
||||
]], { i(1) })),
|
||||
|
||||
s("iferr", fmt([[
|
||||
if err := {}; err != nil {{
|
||||
|
|
|
|||
Loading…
Reference in a new issue