refactoring

This commit is contained in:
ichiichi11
2020-11-30 21:52:56 +09:00
parent ee96fec814
commit 9b5f243ff9

View File

@@ -85,7 +85,7 @@ impl RuleNode {
let mut errmsgs: Vec<String> = vec![];
// 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());
}