4 ms·
Well the first one simply returns the first value of the list, which can be correct. I just gave the variables names that turned this into a bugfix.
by contravariant 5y ago
Well the first one simply returns the first value of the list, which can be correct. I just gave the variables names that turned this into a bugfix.
- jrochkind1 5y agoI don't see any sane reason you'd intentionally access the first element only of a list by using a for loop with a non-conditional return. But anyway okeydoke. I do wonder if there are any realistic non-bugfix refactors/enhancements that would result in a whitespace-only change, or in general how often in a real codebase you are going to get a whitespace-only commit diff. But yeah, I understand it is possible, cool.