diff --git a/crates/compilers/src/resolver/parse.rs b/crates/compilers/src/resolver/parse.rs index e86758c6..3bb4f1be 100644 --- a/crates/compilers/src/resolver/parse.rs +++ b/crates/compilers/src/resolver/parse.rs @@ -130,7 +130,7 @@ impl SolData { .first() .map(|(cap, name)| Spanned::new(name.as_str().to_owned(), cap.range())); } - if !imports.is_empty() { + if imports.is_empty() { imports = capture_imports(content); } }