mirror of
https://github.com/labs42io/clean-code-typescript.git
synced 2024-11-23 13:44:04 +00:00
[Do not add unneeded context ] to gets an error correction
This commit is contained in:
parent
a06fa32967
commit
6c84c7a72b
|
@ -199,7 +199,7 @@ type Car = {
|
|||
}
|
||||
|
||||
function print(car: Car): void {
|
||||
console.log(`${this.carMake} ${this.carModel} (${this.carColor})`);
|
||||
console.log(`${car.carMake} ${car.carModel} (${car.carColor})`);
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -213,7 +213,7 @@ type Car = {
|
|||
}
|
||||
|
||||
function print(car: Car): void {
|
||||
console.log(`${this.make} ${this.model} (${this.color})`);
|
||||
console.log(`${car.make} ${car.model} (${car.color})`);
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue