5
0
mirror of git://git.proxmox.com/git/proxmox-backup.git synced 2025-01-05 09:17:59 +03:00

remove unnecessary test

This commit is contained in:
Dietmar Maurer 2018-11-07 12:16:16 +01:00
parent 7b5316ddfa
commit 144f0f5eda

View File

@ -185,9 +185,6 @@ pub fn parse_parameter_strings(data: &Vec<(String, String)>, schema: &Jss, test_
for (key, value) in data {
if let Some(prop_schema) = properties.get::<str>(key) {
match prop_schema {
Jss::Object(_) => {
errors.push(format_err!("parameter '{}': cant parse complex Objects.", key));
}
Jss::Array(jss_array) => {
if params[key] == Value::Null {
params[key] = json!([]);