Kaynağa Gözat

format fix for isPrematureClose (#31161)

* format fix for isprematureclose

* white space?

GitOrigin-RevId: eb6a02eeb6186a130ed7b7b0233256e1d7dde805
Anna Claire Fields 8 ay önce
ebeveyn
işleme
f7a68d67d3

+ 2 - 3
services/web/app/src/Features/History/HistoryController.mjs

@@ -596,12 +596,11 @@ async function getChanges(req, res, next) {
 }
 }
 
 
 function isPrematureClose(err) {
 function isPrematureClose(err) {
-
   return (
   return (
     err instanceof Error &&
     err instanceof Error &&
     'code' in err &&
     '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')
   )
   )
 }
 }