From 57025f280a6c3c38026fd944d08469b66be0a3a0 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Sun, 1 Mar 2026 22:59:40 +0100 Subject: [PATCH] rpc.go: in IsLspRPCErrorCode: simplify if statement. --- rpc.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/rpc.go b/rpc.go index 708a243..0b1bd66 100644 --- a/rpc.go +++ b/rpc.go @@ -43,9 +43,5 @@ func IsLspRPCErrorCode(code int64) bool { return true } - if code == RPCServerNotInitialized || code == RPCUnknownErrorCode { - return true - } - - return false + return code == RPCServerNotInitialized || code == RPCUnknownErrorCode }