Skip to content

Commit 042f309

Browse files
committed
fix: Remove condition for aborted signal
1 parent 3093c77 commit 042f309

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/templates/core/fetch/request.hbs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,7 @@ export const request = <T>(config: OpenAPIConfig, options: ApiRequestOptions): C
8888
resolve(result.body);
8989
}
9090
} catch (error) {
91-
if (error instanceof Error && error.name === 'AbortError') {
92-
return
93-
} else {
94-
reject(error)
95-
}
91+
reject(error);
9692
}
9793
});
9894
};

0 commit comments

Comments
 (0)