Code Cleanup

This commit is contained in:
abdellah
2022-11-03 19:31:15 +01:00
parent 1314b9a822
commit 37706f2716
2 changed files with 8 additions and 11 deletions

View File

@@ -28,8 +28,8 @@ export class VotesService {
addVote(vote: Vote): void { addVote(vote: Vote): void {
this.voteRef.add({ ...vote }); this.voteRef.add({ ...vote });
} }
vote(candidateID: number): void {
vote(candidateID: number): void {
try { try {
this.ipGeoLocationService.getIP().subscribe((IPData: any) => { this.ipGeoLocationService.getIP().subscribe((IPData: any) => {
const vote: Vote = { const vote: Vote = {
@@ -51,9 +51,6 @@ export class VotesService {
}; };
this.addVote(vote); this.addVote(vote);
} }
} }
} }