Skip to content
This repository was archived by the owner on Apr 22, 2026. It is now read-only.

Commit f42b14c

Browse files
koki-developclaude
andcommitted
refactor(client): rename handleResponse to handleExecuteResponse
Rename for consistency with handleRuntimesResponse method. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 98c2dae commit f42b14c

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/client.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ export class Piston {
167167
);
168168
}
169169

170-
return this.handleResponse(response);
170+
return this.handleExecuteResponse(response);
171171
}
172172

173173
/**
@@ -266,9 +266,11 @@ export class Piston {
266266
}
267267

268268
/**
269-
* Handle API response.
269+
* Handle execute API response.
270270
*/
271-
private async handleResponse(response: Response): Promise<ExecuteResponse> {
271+
private async handleExecuteResponse(
272+
response: Response,
273+
): Promise<ExecuteResponse> {
272274
if (response.ok) {
273275
const raw = (await response.json()) as RawExecuteResponse;
274276
return this.toExecuteResponse(raw);

0 commit comments

Comments
 (0)