https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39405

Martin Renvoize (ashimema) <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #180440|0                           |1
        is obsolete|                            |

--- Comment #30 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 180506
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=180506&action=edit
Bug 39405: (follow-up) Simplify code for choosing the first fine values

This patch avoids the introduction of a `foreach` loop and a `return`
call inside of it, by using grep on the array assignment, and then just
returning the first element on it, if any.

No behavior change is expected.

The code becomes easier to read and spot what is doing.

Signed-off-by: Tomas Cohen Arazi <[email protected]>
Signed-off-by: Martin Renvoize <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to