1
0
Fork 0
mirror of https://github.com/laravel-ls/protocol.git synced 2026-06-16 03:54:56 +02:00

rpc.go: in IsLspRPCErrorCode: simplify if statement.

This commit is contained in:
Henrik Hautakoski 2026-03-01 22:59:40 +01:00
parent be37cd5a53
commit 57025f280a

6
rpc.go
View file

@ -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
}