Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove empty catch blocks #109

Closed
GoodForOneFare opened this issue May 23, 2016 · 2 comments
Closed

Remove empty catch blocks #109

GoodForOneFare opened this issue May 23, 2016 · 2 comments
Assignees

Comments

@GoodForOneFare
Copy link
Member

Remove the empty catch block from code like this:

// Before
try {
  foo();
} catch (undefined) {} finally {
  bar();
}

// After
try {
  foo();
} finally {
  bar();
}

// Before
try {
  foo();
} catch (e) {} finally {
  bar();
}

// After
try {
  foo();
} finally {
  bar();
}
@xndyz
Copy link
Contributor

xndyz commented Jun 2, 2016

@lemonmade and I decided it's easier to do this in another code-mod transform instead of Decaf (for the sake of sanity).

@xndyz
Copy link
Contributor

xndyz commented Jun 2, 2016

Fixed in #153

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants