From f7a68d67d39480977a0c56bff43f4f53a0fbfe12 Mon Sep 17 00:00:00 2001 From: Anna Claire Fields <58918237+franklovefrank@users.noreply.github.com> Date: Fri, 30 Jan 2026 11:06:12 +0100 Subject: [PATCH] format fix for isPrematureClose (#31161) * format fix for isprematureclose * white space? GitOrigin-RevId: eb6a02eeb6186a130ed7b7b0233256e1d7dde805 --- services/web/app/src/Features/History/HistoryController.mjs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/services/web/app/src/Features/History/HistoryController.mjs b/services/web/app/src/Features/History/HistoryController.mjs index 39d07137f0..2175b9114d 100644 --- a/services/web/app/src/Features/History/HistoryController.mjs +++ b/services/web/app/src/Features/History/HistoryController.mjs @@ -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') ) }