format fix for isPrematureClose (#31161)

* format fix for isprematureclose

* white space?

GitOrigin-RevId: eb6a02eeb6186a130ed7b7b0233256e1d7dde805
This commit is contained in:
Anna Claire Fields
2026-01-30 11:06:12 +01:00
committed by Copybot
parent a108552df6
commit f7a68d67d3

View File

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