Skip to content

Commit c45e98d

Browse files
anatoly314claude
andcommitted
style(tunnel): wrap long if-condition in device-flow polling
Prettier line-wrap of the HTTPError/error.data guard in pollForToken. No logic change. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 5c070db commit c45e98d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/tunnel/device-flow.service.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,10 @@ export class DeviceFlowService {
210210
// Handle expected polling errors. In ky v2 the response body is
211211
// pre-parsed onto `error.data`; if it isn't a recognizable OAuth
212212
// error payload we fall through to generic HTTP error handling.
213-
if (error instanceof HTTPError && isDeviceFlowErrorResponse(error.data)) {
213+
if (
214+
error instanceof HTTPError &&
215+
isDeviceFlowErrorResponse(error.data)
216+
) {
214217
const errorResponse = error.data;
215218

216219
switch (errorResponse.error) {

0 commit comments

Comments
 (0)