Skip to content

Commit

Permalink
javascript/typescript: improve ifelse snippet (#532)
Browse files Browse the repository at this point in the history
  • Loading branch information
insidewhy authored Dec 2, 2024
1 parent f774bce commit 7ab7eda
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion snippets/javascript/javascript.json
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@
},
"If-Else Statement": {
"prefix": "ifelse",
"body": ["if (${1:condition}) {", "\t$0", "} else {", "\t", "}"],
"body": ["if (${1:condition}) {", "\t$2", "} else {", "\t$0", "}"],
"description": "If-Else Statement"
},
"New Statement": {
Expand Down
2 changes: 1 addition & 1 deletion snippets/javascript/typescript.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
},
"If-Else Statement": {
"prefix": "ifelse",
"body": ["if (${1:condition}) {", "\t$0", "} else {", "\t", "}"],
"body": ["if (${1:condition}) {", "\t$2", "} else {", "\t$0", "}"],
"description": "If-Else Statement"
},
"New Statement": {
Expand Down

0 comments on commit 7ab7eda

Please sign in to comment.