]> git.koha-community.org Git - koha.git/commit
Basic reformat of section in Search.pm
authorJoe Atzberger <joe.atzberger@liblime.com>
Fri, 9 Jan 2009 21:42:27 +0000 (15:42 -0600)
committerGalen Charlton <galen.charlton@liblime.com>
Fri, 24 Apr 2009 15:55:53 +0000 (10:55 -0500)
commit424eff89ddedb1dabe24a26a1d6ee484e97c3d2f
tree5de0777a59945fe93a68bcfdc1cb9f6e5c5b97f1
parentcd16f12a473537c2c105eb074aa8335fcdf9b4bc
Basic reformat of section in Search.pm

In for loops, replace all-inclusive conditional blocks like:
    for (@foo) {
        if (test) {
            block;
        }
    }

with conditional use of "next":
    for (@foo) {
        test or next;
        block;
    }

This reduces the number of unnecessarily nested blocks, and the
overall number of lines.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
C4/Search.pm