Change config validation

This commit is contained in:
QuantumEntangledAndy authored and Andrew committed 2023-04-05 16:16:06 +07:00
1 parent 94805c881e
commit 3771098c2f
1 file changed
-3
-3
View File
@@ -241,9 +241,6 @@ fn validate_camera_config(camera_config: &CameraConfig) -> Result<(), Validation
(None, None) => Err(ValidationError::new(
"Either camera address or uid must be given",
)),
(Some(_), Some(_)) => Err(ValidationError::new(
"Must provide either camera address or uid not both",
)),
_ => Ok(()),
}
}