FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Merge pull request #123 from Hurtak/feature/snippets-trycatch · atom/language-javascript@4bdfe02 · GitHub

This repository was archived by the owner on Dec 15, 2022. It is now read-only.
/ language-javascript Public archive

Commit 4bdfe02

Browse files
committed
Merge pull request #123 from Hurtak/feature/snippets-trycatch
Removed useless statement variables from try snippet
2 parents 88c0761 + ae20858 commit 4bdfe02

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎snippets/language-javascript.cson‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
'body': 'switch (${1:expression}) {\n\tcase ${2:expression}:\n\t\t$4\n\t\tbreak;$5\n\tdefault:\n\t\t$3\n}'
8989
'try':
9090
'prefix': 'try'
91-
'body': 'try {\n\t${1:statements}\n} catch (${2:variable}) {\n\t${3:statements}\n}${4: finally {\n\t${5:statements}\n}}'
91+
'body': 'try {\n\t$1\n} catch (${2:e}) {\n\t$3\n}${4: finally {\n\t$5\n}}'
9292
'while':
9393
'prefix': 'while'
9494
'body': 'while (${1:true}) {\n\t$2\n}'

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL