@hlfan commented on this pull request.


> +        const status = response.statusText || response.status;
+
+        throw new Error(status);

I don't think there's a need for making an extra var for that then.

```suggestion
        throw new Error(response.statusText || response.status);
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6724#pullrequestreview-3688621850
You are receiving this because you are subscribed to this thread.

Message ID: 
<openstreetmap/openstreetmap-website/pull/6724/review/[email protected]>
_______________________________________________
rails-dev mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to