Basic reformat of section in Search.pm
authorJoe Atzberger <joe.atzberger@liblime.com>
Fri, 9 Jan 2009 21:42:27 +0000 (15:42 -0600)
committerHenri-Damien LAURENT <henridamien@koha-fr.org>
Tue, 27 Jan 2009 11:19:46 +0000 (12:19 +0100)
commit79cd91dfe4fbfae27c62f776f32e234ec8c0122f
tree8e42541f93701185b4d84d2a1e62a7e39fadfc74
parentea40ff382f1e23916ad7125f29fa155fb628b86e
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: Henri-Damien LAURENT <henridamien@koha-fr.org>
C4/Search.pm