Skip to content

Commit

Permalink
Docs: adding finally example (#12256)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeme authored and ilyavolodin committed Sep 13, 2019
1 parent d52328f commit 319e4d8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/rules/no-useless-catch.md
Expand Up @@ -43,6 +43,12 @@ try {
} catch (e) {
handleError(e);
}

try {
doSomethingThatMightThrow();
} finally {
cleanUp();
}
```

## When Not To Use It
Expand Down

0 comments on commit 319e4d8

Please sign in to comment.