Skip to content

Commit

Permalink
Set semi colons appropriately
Browse files Browse the repository at this point in the history
  • Loading branch information
arbulu89 committed Feb 29, 2024
1 parent 8ca2512 commit 56d89d6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/dsl/validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,14 @@ pub fn validate(
index,
is_expect,
));
};
}

if warning_message.is_some() && !is_expect_enum {
results.push(Err(ValidationError {
check_id: check_id.to_string(),
error: "warning_message is only available for expect_enum expectations".to_string(),
instance_path: format!("/expectations/{:?}", index).to_string(),
}))
}));
} else if warning_message.is_some() {
let warning_message_expression = warning_message.unwrap().as_str().unwrap();
results.push(validate_string_expression(
Expand All @@ -100,15 +100,15 @@ pub fn validate(
index,
is_expect_enum,
));
};
}

if is_expect_enum {
results.append(&mut validate_expect_enum_content(
expectation_expression,
check_id,
index,
));
};
}

results
})
Expand Down

0 comments on commit 56d89d6

Please sign in to comment.