diff --git a/crates/ide/src/goto_type_definition.rs b/crates/ide/src/goto_type_definition.rs index 2976dec3794..693098e3f29 100644 --- a/crates/ide/src/goto_type_definition.rs +++ b/crates/ide/src/goto_type_definition.rs @@ -81,11 +81,7 @@ pub(crate) fn goto_type_definition( } }); }); - if res.is_empty() { - None - } else { - Some(RangeInfo::new(range, res)) - } + Some(RangeInfo::new(range, res)) } #[cfg(test)]