Skip to content

Commit

Permalink
Remove disabled if
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed May 30, 2018
1 parent 739b5bd commit 784958c
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions packages/babel-plugin-proposal-decorators/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,6 @@ export default declare((api, options) => {
throw new Error("'legacy' must be a boolean.");
}

if (legacy !== true && false) {
throw new Error(
"The new decorators proposal is not supported yet." +
' You must pass the `"legacy": true` option to' +
" @babel/plugin-proposal-decorators",
);
}

if (decoratorsBeforeExport !== undefined) {
if (legacy) {
throw new Error(
Expand Down

0 comments on commit 784958c

Please sign in to comment.