mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
refactor: put conditional into just one line
This commit is contained in:
parent
d3c3ecfd35
commit
ba29035413
1 changed files with 1 additions and 3 deletions
|
|
@ -77,9 +77,7 @@ function connectStream(socket: WebSocket) {
|
|||
send(['EVENT', subId, event]);
|
||||
}
|
||||
} catch (e) {
|
||||
if (
|
||||
e instanceof RelayError
|
||||
) {
|
||||
if (e instanceof RelayError) {
|
||||
send(['CLOSED', subId, e.message]);
|
||||
} else {
|
||||
send(['CLOSED', subId, 'error: something went wrong']);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue