Remove argument checks for piVersion in internal pod state representation

This commit is contained in:
Bart Sopers 2020-08-10 20:49:48 +02:00
parent 341474295f
commit 906b8c2585

View file

@ -490,12 +490,6 @@ public abstract class PodStateManager {
}
void setPiVersion(FirmwareVersion piVersion) {
if (this.piVersion != null) {
throw new IllegalStateException("piVersion has already been set");
}
if (piVersion == null) {
throw new IllegalArgumentException("piVersion can not be null");
}
this.piVersion = piVersion;
}