From e80bc423af4d0dbf5e47b949a0a78ca7e0ee4e78 Mon Sep 17 00:00:00 2001 From: lama <1774550500@qq.com> Date: Mon, 1 Jun 2026 21:44:36 +0800 Subject: [PATCH] chore(format): enforce lf line endings --- .gitattributes | 1 + src/response/finalize-response.js | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..6313b56 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto eol=lf diff --git a/src/response/finalize-response.js b/src/response/finalize-response.js index 059b480..51394e1 100644 --- a/src/response/finalize-response.js +++ b/src/response/finalize-response.js @@ -67,7 +67,12 @@ async function finalizeErrorResponse({ requestContext, response, responseGenerat return response; } - if (requestContext.isAI || requestContext.isHF || requestContext.isGit || requestContext.isGitLFS) { + if ( + requestContext.isAI || + requestContext.isHF || + requestContext.isGit || + requestContext.isGitLFS + ) { return response; }