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:
parent
be37cd5a53
commit
57025f280a
1 changed files with 1 additions and 5 deletions
6
rpc.go
6
rpc.go
|
|
@ -43,9 +43,5 @@ func IsLspRPCErrorCode(code int64) bool {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
if code == RPCServerNotInitialized || code == RPCUnknownErrorCode {
|
return code == RPCServerNotInitialized || code == RPCUnknownErrorCode
|
||||||
return true
|
|
||||||
}
|
|
||||||
|
|
||||||
return false
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue