MBS-7702: Reduce the duplication in link_* macros

Merged
#1056 · Created  · Last updated

Description

So I rewrote the link_* macros to have less duplicate code, and no duplicate/split conditions. I compared the old and new macros like so:

for i in "artist/b83bc61f-8451-4a5d-8b8e-7e9ed295e822" \ "artist/b83bc61f-8451-4a5d-8b8e-7e9ed295e822/relationships" \ "artist/b83bc61f-8451-4a5d-8b8e-7e9ed295e822/recordings" \ "artist/b83bc61f-8451-4a5d-8b8e-7e9ed295e822/works" \ "area/f03d09b3-39dc-4083-afd6-159e3f0d462f" \ "area/f03d09b3-39dc-4083-afd6-159e3f0d462f/places" \ "release/3d489383-774b-4793-a789-e1a9f532822f/discids" \ "search?query=wise+guys&type=freedb&method=indexed" do diff -u --ignore-space-change \ <(wget -O - "http://bitmap.mbsandbox.org/$i" 2>/dev/null | sed -e 's/bitmap/servername/g') \ <(wget -O - "http://chirlu.mbsandbox.org/$i" 2>/dev/null | sed -e 's/chirlu/servername/g') done | more

All differences were either in irrelevant whitespace, intentional (see comments) or unrelated.

0 attachments

0 comments

Loading commits...