refactoring

This commit is contained in:
ichiichi11 committed 2020-11-30 21:52:56 +09:00
1 parent ee96fec814
commit 9b5f243ff9
1 file changed
+1 -1
+1 -1
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());
}