Skip to content

Commit 7ab7eda

Browse files
authored
javascript/typescript: improve ifelse snippet (#532)
1 parent f774bce commit 7ab7eda

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

snippets/javascript/javascript.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@
631631
},
632632
"If-Else Statement": {
633633
"prefix": "ifelse",
634-
"body": ["if (${1:condition}) {", "\t$0", "} else {", "\t", "}"],
634+
"body": ["if (${1:condition}) {", "\t$2", "} else {", "\t$0", "}"],
635635
"description": "If-Else Statement"
636636
},
637637
"New Statement": {

snippets/javascript/typescript.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@
165165
},
166166
"If-Else Statement": {
167167
"prefix": "ifelse",
168-
"body": ["if (${1:condition}) {", "\t$0", "} else {", "\t", "}"],
168+
"body": ["if (${1:condition}) {", "\t$2", "} else {", "\t$0", "}"],
169169
"description": "If-Else Statement"
170170
},
171171
"New Statement": {

0 commit comments

Comments
 (0)