https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32898

--- Comment #7 from Paul Derscheid <[email protected]> ---
A more idiomatic way to write

    response && response.status === 2XX

would be

    response?.status === 2XX ?? false

I think this is easier to read when scanning through the code. As this is a
matter of taste, I'll let you be the judge.

Additionally I don't think you need the return await. You await already in the
myFetch function so you can just return.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to