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
..
2017-12-25 22:21:37 -05:00
2018-11-05 16:48:04 -05:00
2018-11-04 18:54:43 +01:00
2018-11-01 19:39:28 -04:00
2018-10-03 19:08:05 +01:00
2018-11-05 16:48:04 -05:00
2018-11-02 17:11:44 -04:00
2018-08-08 17:57:14 -04:00
2018-11-02 17:11:44 -04:00
2018-09-09 11:41:10 +01:00
2018-11-02 17:11:44 -04:00
2018-08-08 17:57:14 -04:00
2017-03-26 22:57:55 +02:00
2018-08-08 17:57:14 -04:00
2018-09-22 12:28:54 +01:00
2018-08-30 10:03:15 -07:00
2018-08-30 10:03:15 -07:00
2018-09-03 19:37:37 +01:00
2018-08-14 18:57:24 +01:00
2018-08-08 17:57:14 -04:00
2018-08-08 17:57:14 -04:00
2018-08-19 10:27:23 -04:00
2018-08-19 10:27:23 -04:00
2018-10-30 18:34:04 +00:00
2018-11-02 17:11:44 -04:00
2018-08-11 20:13:40 -04:00
2018-10-20 15:15:10 +02:00
2018-10-20 15:15:10 +02:00
2018-11-02 17:11:44 -04:00
2018-08-12 20:45:43 -04:00
2018-11-02 17:11:44 -04:00
2018-08-12 20:45:43 -04:00
2018-11-02 17:11:44 -04:00
2018-08-08 17:57:14 -04:00
2018-11-02 17:11:44 -04:00
2018-08-08 17:57:14 -04:00
2018-08-08 17:57:14 -04:00
2018-11-05 16:55:49 -05:00
2018-11-05 16:55:49 -05:00
2018-11-02 17:11:44 -04:00
2018-09-10 19:27:05 +01:00
2018-08-08 17:57:14 -04:00
2018-08-08 17:57:14 -04:00
2018-08-08 17:57:14 -04:00
2018-11-02 17:11:44 -04:00
2018-08-08 17:57:14 -04:00
2018-08-19 10:27:23 -04:00
2018-08-19 10:27:23 -04:00
2018-10-10 19:22:30 +01:00
2018-08-08 17:57:14 -04:00
2018-10-28 11:34:47 -04:00
2018-11-02 17:11:44 -04:00
2018-10-26 20:08:02 +01:00
2018-11-04 00:33:47 -04:00
2018-11-04 18:54:43 +01:00
2018-08-08 17:57:14 -04:00
2018-11-05 16:48:04 -05:00
2018-11-01 15:09:00 -04:00
2018-10-28 11:34:47 -04:00
2018-08-08 17:57:14 -04:00
2018-08-08 17:57:14 -04:00
2018-11-02 17:11:44 -04:00
2018-09-08 09:27:59 -07:00
2018-08-08 17:57:14 -04:00
2018-08-12 20:45:43 -04:00
2018-08-19 10:27:23 -04:00
2018-08-09 07:22:54 -04:00
2018-08-09 07:22:54 -04:00
2018-08-09 07:22:54 -04:00
2018-08-09 07:22:54 -04:00
2018-08-08 17:57:14 -04:00
2018-11-02 17:11:44 -04:00
2018-08-27 07:46:06 -04:00