Files
shields/lib
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-04 18:54:43 +01:00
2018-08-08 17:57:14 -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-08-08 17:57:14 -04: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-08-08 17:57:14 -04: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-08-08 17:57:14 -04:00
2018-08-08 17:57:14 -04:00