Paul Melnikow
3bb392dfae
Remove some duplicated URL generation code ( #2240 )
...
I went down a rabbit hole while trying to untangle the bug in the dockbit and bitrise examples https://github.com/badges/shields/pull/2234#pullrequestreview-169997546 .
The URL generation code is spaghetti-like, with functions, many of which I wrote, with opaque names, doing similar but not identical things, and making slightly incompatible assumptions about the way query strings are handled.
I got a bit lost and need to take a step back.
Meanwhile, this is a small piece of work I did that’s worth keeping. It doesn’t scratch the surface of the tangle, but it does remove a bit of duplication.
It also makes a minor stylistic ES6 change in the handling of default arguments.
Ref: #2027
2018-11-05 16:55:49 -05:00
..
2018-11-02 17:11:44 -04:00
2018-10-19 19:23:41 +01:00
2018-09-01 11:14:01 -07:00
2018-09-18 09:07:20 +01:00
2018-11-01 13:46:23 -04:00
2018-11-05 16:52:53 -05:00
2018-11-02 17:11:44 -04:00
2018-11-02 17:11:44 -04:00
2018-11-02 17:11:44 -04:00
2018-08-30 10:03:15 -07:00
2018-11-02 17:11:44 -04:00
2018-11-02 17:11:44 -04:00
2018-10-31 17:32:35 -04:00
2018-11-02 17:11:44 -04:00
2018-11-02 17:11:44 -04:00
2018-10-31 17:32:35 -04:00
2018-08-30 10:03:15 -07:00
2018-11-04 00:33:47 -04:00
2018-10-05 22:46:51 +01:00
2018-11-02 17:11:44 -04:00
2018-11-02 17:11:44 -04:00
2018-11-02 17:11:44 -04:00
2018-11-02 17:11:44 -04:00
2018-11-02 17:11:44 -04:00
2018-11-02 17:11:44 -04:00
2018-11-02 17:11:44 -04:00
2018-11-02 17:11:44 -04:00
2018-11-02 17:11:44 -04:00
2018-11-02 17:11:44 -04:00
2018-11-02 17:11:44 -04:00
2018-11-02 17:11:44 -04:00
2018-11-02 17:11:44 -04:00
2018-11-02 17:11:44 -04:00
2018-11-02 17:11:44 -04:00
2018-10-20 14:51:25 +02:00
2018-11-02 17:11:44 -04:00
2018-10-31 17:32:35 -04:00
2018-10-23 18:24:14 +01:00
2018-10-26 20:08:02 +01:00
2018-11-02 17:11:44 -04:00
2018-10-31 17:32:35 -04:00
2018-11-02 17:11:44 -04:00
2018-08-30 10:03:15 -07:00
2018-11-02 17:11:44 -04:00
2018-10-25 20:53:34 +01:00
2018-10-31 17:32:35 -04:00
2018-11-04 00:33:47 -04:00
2018-11-02 17:11:44 -04:00
2018-08-30 10:03:15 -07:00
2018-11-02 17:11:44 -04:00
2018-10-31 17:32:35 -04:00
2018-08-30 10:03:15 -07:00
2018-11-02 17:11:44 -04:00
2018-11-01 13:46:23 -04:00
2018-11-02 17:11:44 -04:00
2018-11-02 17:11:44 -04:00
2018-09-01 20:53:52 +01:00
2018-11-02 17:11:44 -04:00
2018-11-02 17:11:44 -04:00
2018-11-02 17:11:44 -04:00
2018-11-02 17:11:44 -04:00
2018-11-02 17:11:44 -04:00
2018-10-01 20:53:04 +01:00
2018-11-02 17:11:44 -04:00
2018-11-02 17:11:44 -04:00
2018-11-02 17:11:44 -04:00
2018-09-22 12:28:54 +01:00
2018-11-02 17:11:44 -04:00
2018-08-30 10:03:15 -07:00
2018-11-02 17:11:44 -04:00
2018-11-02 17:11:44 -04:00
2018-10-31 17:32:35 -04:00
2018-10-31 17:32:35 -04:00
2018-09-20 20:18:30 +01:00
2018-11-02 17:11:44 -04:00
2018-10-20 08:06:36 +01:00
2018-11-02 17:11:44 -04:00
2018-11-02 17:11:44 -04:00
2018-11-02 17:11:44 -04:00
2018-11-02 17:11:44 -04:00
2018-11-04 00:33:47 -04:00
2018-10-23 18:03:50 +01:00
2018-11-02 17:11:44 -04:00
2018-11-02 17:11:44 -04:00
2018-10-06 16:38:41 +01:00
2018-11-05 16:52:53 -05:00
2018-11-02 17:11:44 -04:00
2018-11-01 13:46:23 -04:00
2018-11-02 17:11:44 -04:00
2018-11-02 17:11:44 -04:00
2018-11-02 17:11:44 -04:00
2018-08-30 10:03:15 -07:00
2018-11-02 17:11:44 -04:00
2018-11-02 17:11:44 -04:00
2018-11-02 17:11:44 -04:00
2018-11-02 17:11:44 -04:00
2018-11-01 13:46:23 -04:00
2018-11-02 17:11:44 -04:00
2018-11-01 13:46:23 -04:00
2018-11-02 17:11:44 -04:00
2018-11-04 00:33:47 -04:00
2018-11-02 17:11:44 -04:00
2018-09-03 19:37:37 +01:00
2018-11-02 17:11:44 -04:00
2018-08-30 10:03:15 -07:00
2018-11-02 17:11:44 -04:00
2018-11-02 17:11:44 -04:00
2018-11-02 17:11:44 -04:00
2018-11-01 13:46:23 -04:00
2018-11-02 17:11:44 -04:00
2018-11-01 13:46:23 -04:00
2018-10-01 20:53:04 +01:00
2018-10-01 20:53:04 +01:00
2018-09-03 19:37:37 +01:00
2018-09-03 19:37:37 +01:00
2018-11-05 16:52:53 -05:00
2018-11-05 16:52:53 -05:00
2018-09-03 19:37:37 +01:00
2018-09-03 19:37:37 +01:00
2018-11-05 16:55:49 -05:00
2018-11-05 16:55:49 -05:00
2018-11-05 16:52:53 -05:00
2018-10-28 15:58:38 +00:00
2018-10-28 15:58:38 +00:00
2018-11-05 16:52:53 -05:00
2018-10-01 20:53:04 +01:00
2018-10-28 15:56:19 +00:00