Skip to content

Commit

Permalink
correction linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Baptiste LYET committed Feb 27, 2024
1 parent a500163 commit 1bd005d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ export class AppComponent implements OnInit {

selectGenre(i: number) {
this.selectedGenreIndex = i;
this.router.navigate([this.musicGenres[this.selectedGenreIndex].subGenres[0].link]).then(r => {
this.router.navigate([this.musicGenres[this.selectedGenreIndex].subGenres[0].link]).then(() => {
});

Check failure

Code scanning / ESLint

Require Promise-like statements to be handled appropriately Error

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the void operator.
}

selectSubGenre(i: number) {
this.selectedSubGenreIndex = i;
this.router.navigate([this.musicGenres[this.selectedGenreIndex].subGenres[this.selectedSubGenreIndex].link]).then(r => {
this.router.navigate([this.musicGenres[this.selectedGenreIndex].subGenres[this.selectedSubGenreIndex].link]).then(() => {
});

Check failure

Code scanning / ESLint

Require Promise-like statements to be handled appropriately Error

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the void operator.
}
}

0 comments on commit 1bd005d

Please sign in to comment.