Skip to content

Commit 8a29291

Browse files
committed
remove car's excepton throw
1 parent e77a7ad commit 8a29291

File tree

1 file changed

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

1 file changed

+0
-3
lines changed

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@ public double getGasTankLevel() {
4747
}
4848

4949
public void setGasTankLevel(double gasTankLevel) {
50-
if (gasTankLevel > this.getGasTankSize()) {
51-
throw new IllegalArgumentException("Can't exceed tank size");
52-
}
5350
this.gasTankLevel = gasTankLevel;
5451
}
5552

0 commit comments

Comments
 (0)