56
rated 0 times
[
63]
[
7]
/ answers: 1 / hits: 16054
/ 7 Years ago, fri, march 17, 2017, 12:00:00
I'm using TSLint extension for VS Code. I got bunch of [tslint] misplaced 'else' (one-line)
warnings. For example, at the below code sample, linter underlines else word and gives same warning:
Code:
if (user.isAdmin) {
this.uiRouter.stateService.go('app.admin');
}
else {
this.sharedVariables.user = user;
this.navigateByUserType(user);
}
What is the problem with this code?
More From » visual-studio-code