refactoring
This commit is contained in:
@@ -85,7 +85,7 @@ impl RuleNode {
|
|||||||
let mut errmsgs: Vec<String> = vec![];
|
let mut errmsgs: Vec<String> = vec![];
|
||||||
|
|
||||||
// field check
|
// field check
|
||||||
if self.yaml["output"].as_str().is_none() {
|
if self.yaml["output"].as_str().unwrap_or("").is_empty() {
|
||||||
errmsgs.push("Cannot find required key. key:output".to_string());
|
errmsgs.push("Cannot find required key. key:output".to_string());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user