GlidingTracks/gt-frontend

View on GitHub

Showing 2 of 7 total issues

Similar blocks of code found in 2 locations. Consider refactoring.
Open

async takeOwnership(trackID: string) {
const headers = await this.getHeadersWithTokenAndTrackID(trackID);
return(await this.http.request('PUT', this.backendBaseURL + '/takeOwnership', {headers})).toPromise();
}
Severity: Major
Found in src/app/services/track-manager.service.ts and 1 other location - About 1 hr to fix
src/app/services/track-manager.service.ts on lines 55..58

Similar blocks of code found in 2 locations. Consider refactoring.
Open

async deleteTrack(trackID: string) {
const headers = await this.getHeadersWithTokenAndTrackID(trackID);
return(await this.http.request('DELETE', this.backendBaseURL + '/deleteTrack', {headers})).toPromise();
}
Severity: Major
Found in src/app/services/track-manager.service.ts and 1 other location - About 1 hr to fix
src/app/services/track-manager.service.ts on lines 50..53
Severity
Category
Status
Source
Language