mason/.perl-lib/TrivGal.pm (Image::scale): Restructure the control flow.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 21 Jun 2023 09:05:15 +0000 (10:05 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 21 Jun 2023 09:21:39 +0000 (10:21 +0100)
commit351bb9a6af5ceb85ddb226a88944e10924f70498
tree4e43dc8e835cf083d7f5318170abb7d1d56cbeb5
parent2c1f91c4c2441cde00590f88efc5e0553783410f
mason/.perl-lib/TrivGal.pm (Image::scale): Restructure the control flow.

Now every path sets `$url' and then we return it at the end.  I'd hoped
to eliminate the multiple calls to `apply_escapes', but the query string
makes that rather annoying without introducing it as a concept
throughout the function, which seems even uglier.
mason/.perl-lib/TrivGal.pm