Skip to content

Commit

Permalink
fix(header-menu.component.ts): fixing tslint error
Browse files Browse the repository at this point in the history
Identifier 'key' is never reassigned; use 'const' instead of 'let'.
  • Loading branch information
andreasonny83 committed Jun 4, 2017
1 parent 1df8e83 commit 3ead690
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/header/header-menu/header-menu.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,14 @@ export class HeaderMenuComponent implements OnInit {
}

private generateBoardColumns(columns: number, questionColumn: number): void {
let posts = [];
const posts = [];
this.boardColumns = [];

for (let i = 0; i < columns; i++) {
this.boardColumns.push({count: 0, value: ''});
}

for (let key in this.boardService.currentBoard.posts) {
for (const key in this.boardService.currentBoard.posts) {
if (this.boardService.currentBoard.posts.hasOwnProperty(key)) {
posts.push(this.boardService.currentBoard.posts[key]);
}
Expand Down

0 comments on commit 3ead690

Please sign in to comment.