Skip to content

Commit

Permalink
refactor: remove redundant match
Browse files Browse the repository at this point in the history
  • Loading branch information
kasiaMarek committed Dec 6, 2024
1 parent cf1d3e6 commit c33a642
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,7 @@ class SymbolIndexBucket(
}
if (!definitions.contains(symbol.value)) {
// Fallback 3: guess related symbols from the enclosing class.
DefinitionAlternatives(symbol)
.flatMap { case (alternative) => query0(querySymbol, alternative) }
DefinitionAlternatives(symbol).flatMap(query0(querySymbol, _))
} else {
definitions
.get(symbol.value)
Expand Down

0 comments on commit c33a642

Please sign in to comment.