* docs(toh-6): update 'let' to 'const' for delete hero (#2355)
Since the update function does use const url instead of let url, this seemed like a good consistency to have between similar blocks of code. * docs(toh-6): update 'let' to 'const' for delete hero
This commit is contained in:
parent
9671d99585
commit
5cee3b9b8b
@ -42,7 +42,7 @@ export class HeroService {
|
|||||||
|
|
||||||
// #docregion delete
|
// #docregion delete
|
||||||
delete(id: number): Promise<void> {
|
delete(id: number): Promise<void> {
|
||||||
let url = `${this.heroesUrl}/${id}`;
|
const url = `${this.heroesUrl}/${id}`;
|
||||||
return this.http.delete(url, {headers: this.headers})
|
return this.http.delete(url, {headers: this.headers})
|
||||||
.toPromise()
|
.toPromise()
|
||||||
.then(() => null)
|
.then(() => null)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user