Skip to content

Commit 86406d8

Browse files
committed
Fixes bug in dfs
1 parent c5d9697 commit 86406d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lading/src/bin/lading.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,8 @@ fn log_unexpected_keys(specified_config: &String, resolved_config: &String) {
226226
} else {
227227
let resolved_value = &resolved_sequence[i];
228228
descend_and_log_unexpected_keys(v, resolved_value, path);
229-
path.pop();
230229
}
230+
path.pop();
231231
}
232232
}
233233
(serde_yaml::Value::Sequence(_), res) => {
@@ -248,8 +248,8 @@ fn log_unexpected_keys(specified_config: &String, resolved_config: &String) {
248248
} else {
249249
let resolved_value = resolved_mapping.get(k).unwrap();
250250
descend_and_log_unexpected_keys(v, resolved_value, path);
251-
path.pop();
252251
}
252+
path.pop();
253253
}
254254
}
255255
(serde_yaml::Value::Mapping(_), _) => todo!(),

0 commit comments

Comments
 (0)