mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 09:09:36 +02:00
format fix for isPrematureClose (#31161)
* format fix for isprematureclose * white space? GitOrigin-RevId: eb6a02eeb6186a130ed7b7b0233256e1d7dde805
This commit is contained in:
committed by
Copybot
parent
a108552df6
commit
f7a68d67d3
@@ -596,12 +596,11 @@ async function getChanges(req, res, next) {
|
||||
}
|
||||
|
||||
function isPrematureClose(err) {
|
||||
|
||||
return (
|
||||
err instanceof Error &&
|
||||
'code' in err &&
|
||||
(err.code === 'ERR_STREAM_PREMATURE_CLOSE' ||
|
||||
err.code === 'ERR_STREAM_UNABLE_TO_PIPE')
|
||||
(err.code === 'ERR_STREAM_PREMATURE_CLOSE' ||
|
||||
err.code === 'ERR_STREAM_UNABLE_TO_PIPE')
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user