Skip to content

Commit

Permalink
lsp.interactive: Removed unnecessary get.
Browse files Browse the repository at this point in the history
  • Loading branch information
soerendomroes committed Mar 13, 2024
1 parent 0d7b948 commit 4a6ad21
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ class KGraphDiagramServer extends LanguageAwareDiagramServer {
val handlerInstance = handlers.get(action.kind)
if (handlerInstance !== null) {
// Even though we have an instance, it is not yet populated with all injected things.
val handler = injector.getInstance(handlers.get(action.kind).class)
val handler = injector.getInstance(handlerInstance.class)
handler.handle(action, clientId, this)
} else {
// If no handler is registered for this message. Let the default super class handle it.
Expand Down

0 comments on commit 4a6ad21

Please sign in to comment.