Skip to content

Commit

Permalink
fix switch case eslint rule
Browse files Browse the repository at this point in the history
  • Loading branch information
kmorcinek committed Feb 27, 2023
1 parent 6d35b6a commit 355ad01
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ProvincesParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,11 @@ export class ProvinceParser {
return Production.Fort;
case "diplomat":
return Production.Diplomat;
default:
default: {
const errorMessage = "new Production value: " + icon;
console.error(errorMessage);
throw new DOMException(errorMessage);
}
}
}

Expand Down

0 comments on commit 355ad01

Please sign in to comment.