Skip to content

Commit ac63b92

Browse files
kraenhansenclaude
andcommitted
vendor-hermes: apply prettier formatting
Collapse the single-argument `.replace()` call in patchHermesNapiVisibility onto one line to satisfy prettier:check (fixup for the hermes_napi patch). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 5b47314 commit ac63b92

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

packages/host/src/node/cli/hermes.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,7 @@ async function patchHermesNapiVisibility(hermesPath: string) {
5555
`Cannot patch ${HERMES_NAPI_HEADER}: expected anchors not found (did the pinned Hermes commit change?)`,
5656
);
5757
const patched = contents
58-
.replace(
59-
HERMES_NAPI_INCLUDE,
60-
`${HERMES_NAPI_INCLUDE}\n\nEXTERN_C_START`,
61-
)
58+
.replace(HERMES_NAPI_INCLUDE, `${HERMES_NAPI_INCLUDE}\n\nEXTERN_C_START`)
6259
.replace(HERMES_NAPI_ENDIF, `EXTERN_C_END\n\n${HERMES_NAPI_ENDIF}`);
6360
await fs.promises.writeFile(headerPath, patched);
6461
}

0 commit comments

Comments
 (0)