forked from polka_billy/porridger
Code styling
Added brackets for const lambdas Converted const lambdas with multiple instructions to functions
This commit is contained in:
@ -1,6 +1,8 @@
|
||||
const isAborted = (err: Error) => err.name === 'AbortError'
|
||||
const isAborted = (err: Error) => (
|
||||
err.name === 'AbortError'
|
||||
)
|
||||
|
||||
const handleHTTPErrors = (res: Response) => {
|
||||
function handleHTTPErrors(res: Response) {
|
||||
if (!res.ok) {
|
||||
switch (res.status) {
|
||||
case 401:
|
||||
|
Reference in New Issue
Block a user