Skip to content

Commit bbf6535

Browse files
committed
fix settanklevel
1 parent c493e4b commit bbf6535

File tree

1 file changed

+1
-1
lines changed
  • src/org/launchcode/java/demos/testing/main

1 file changed

+1
-1
lines changed

src/org/launchcode/java/demos/testing/main/Car.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public double getGasTankLevel() {
4747
}
4848

4949
public void setGasTankLevel(double gasTankLevel) {
50-
if (gasTankLevel > this.getGasTankLevel()) {
50+
if (gasTankLevel > this.getGasTankSize()) {
5151
throw new IllegalArgumentException("Can't exceed tank size");
5252
}
5353
this.gasTankLevel = gasTankLevel;

0 commit comments

Comments
 (0)