Remove redundant tag type check

Co-authored-by: David Kleingeld <davidsk@zed.dev>
This commit is contained in:
Richard Feldman 2025-08-25 11:02:23 -04:00
parent 7c5738142a
commit c44f9dfb17
No known key found for this signature in database

View file

@ -332,11 +332,7 @@ pub fn update_inlay_link_and_hover_points(
{
let inlay_hint_cache = editor.inlay_hint_cache();
let excerpt_id = hovered_hint.position.excerpt_id;
// Extract the hint ID from the inlay
if let InlayId::Hint(_hint_id) = hovered_hint.id
&& let Some(cached_hint) = inlay_hint_cache.hint_by_id(excerpt_id, hovered_hint.id)
{
if let Some(cached_hint) = inlay_hint_cache.hint_by_id(excerpt_id, hovered_hint.id) {
// Check if we should process this hint for hover
let should_process_hint = match cached_hint.resolve_state {
ResolveState::CanResolve(_, _) => {