Skip to content

Commit 9a15085

Browse files
committed
lint fix
1 parent 0315f00 commit 9a15085

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

src/index.tsx

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -155,37 +155,37 @@ function shimWebstreams() {
155155

156156
function shimAbortSignal() {
157157
// @ts-expect-error: AbortSignal.any isn't defined in RN.
158-
if (typeof AbortSignal.any === "undefined") {
158+
if (typeof AbortSignal.any === 'undefined') {
159159
// @ts-expect-error: AbortSignal.any isn't defined in RN.
160160
AbortSignal.any = function (signals: AbortSignal[]): AbortSignal {
161-
const controller = new AbortController()
162-
161+
const controller = new AbortController();
162+
163163
// If any signal is already aborted, abort immediately
164164
for (const signal of signals) {
165165
if (signal.aborted) {
166-
controller.abort()
167-
return controller.signal
166+
controller.abort();
167+
return controller.signal;
168168
}
169169
}
170-
170+
171171
// Listen for abort events on all signals
172-
const abortHandler = () => controller.abort()
172+
const abortHandler = () => controller.abort();
173173
for (const signal of signals) {
174-
signal.addEventListener("abort", abortHandler)
174+
signal.addEventListener('abort', abortHandler);
175175
}
176-
177-
return controller.signal
178-
}
176+
177+
return controller.signal;
178+
};
179179
}
180180

181181
// @ts-expect-error: AbortSignal.timeout isn't defined in RN.
182-
if (typeof AbortSignal.timeout === "undefined") {
182+
if (typeof AbortSignal.timeout === 'undefined') {
183183
// @ts-expect-error: AbortSignal.timeout isn't defined in RN.
184184
AbortSignal.timeout = function (ms: number): AbortSignal {
185-
const controller = new AbortController()
186-
setTimeout(() => controller.abort(), ms)
187-
return controller.signal
188-
}
185+
const controller = new AbortController();
186+
setTimeout(() => controller.abort(), ms);
187+
return controller.signal;
188+
};
189189
}
190190
}
191191
export * from './hooks';

0 commit comments

Comments
 (0)