Skip to content

Commit e2de181

Browse files
authored
Preserve v8 ignore comments in get-file-content.ts
1 parent 15c573c commit e2de181

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/get-file-content.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export async function getFileContents(
5656
// @ts-expect-error This type comes from @octokit/openapi-types, not much we can do to fix it
5757
.request(route, getContentsParameters)
5858
.catch((error: RequestError) => {
59-
/* v8 ignore next */
59+
/* v8 ignore next -- @preserve */
6060
if (error.status !== 404) throw error;
6161

6262
return {
@@ -99,7 +99,7 @@ export async function getFileContents(
9999
content: base64ToUtf8(data.content),
100100
sha: data.sha,
101101
};
102-
/* v8 ignore start */
102+
/* v8 ignore start -- @preserve */
103103
} catch (error: any) {
104104
if (error.message !== "URI malformed") throw error;
105105

@@ -111,5 +111,5 @@ export async function getFileContents(
111111
},
112112
);
113113
}
114-
/* v8 ignore stop */
114+
/* v8 ignore stop -- @preserve */
115115
}

0 commit comments

Comments
 (0)