Skip to content

Commit 2e292fc

Browse files
committed
numPips doesn't change, so make it a constant
1 parent 0992c4d commit 2e292fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/playing-card/playing-card.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export class PlayingCardComponent implements OnInit {
3939
cardImageUrl: string = '';
4040

4141
ngOnInit() {
42-
let numPips = rankToNumberOfPips[this.rank];
42+
const numPips = rankToNumberOfPips[this.rank];
4343

4444
this.pip = pips[this.suit];
4545

0 commit comments

Comments
 (0)