Skip to content

Commit feab9e3

Browse files
committed
fix(check): handle when configs len is 0
1 parent 8ceab1a commit feab9e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/emmylua_check/src/init.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use emmylua_code_analysis::{
55
};
66

77
fn root_from_configs(config_paths: &Vec<PathBuf>, fallback: &PathBuf) -> PathBuf {
8-
if config_paths.len() > 1 {
8+
if config_paths.len() != 1 {
99
fallback.clone()
1010
} else {
1111
let config_path = &config_paths[0];

0 commit comments

Comments
 (0)