1 Apr
2025
1 Apr
'25
11:57 a.m.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39405 --- Comment #9 from Tomás Cohen Arazi (tcohen) <tomascohen@gmail.com> --- Created attachment 180111 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=180111&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 <tomascohen@theke.io> -- You are receiving this mail because: You are watching all bug changes.