You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let symbols = model.clone().borrow().get_main_symbols(session, from_module.clone(),&mutNone);
439
-
if symbols.len() > 0{
439
+
if!symbols.is_empty(){
440
440
for s in symbols.iter(){
441
441
if from_module.is_none() || ModuleSymbol::is_in_deps(session,&from_module.as_ref().unwrap(),&s.borrow().find_module().unwrap().borrow().as_module_package().dir_name,&mutNone){
Copy file name to clipboardExpand all lines: server/src/core/python_validator.rs
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -246,7 +246,7 @@ impl PythonValidator {
246
246
if import_result.found && self.current_module.is_some(){
247
247
let module = import_result.symbol.borrow().find_module();
248
248
ifletSome(module) = module {
249
-
if !ModuleSymbol::is_in_deps(session,&self.current_module.as_ref().unwrap(),&module.borrow().as_module_package().dir_name,&mutNone) && !self.safe_imports.last().unwrap(){
249
+
if !ModuleSymbol::is_in_deps(session,self.current_module.as_ref().unwrap(),&module.borrow().as_module_package().dir_name,&mutNone) && !self.safe_imports.last().unwrap(){
0 commit comments