6 lines of the grown code are empty lines which serve to logically group together the closely related non-empty lines.  2 more lines are used for the return value.  The additional empty lines make the code easier to read.

You'll also notice in the next commit removes 10 lines and adds 5 when the return value is actually used, so all together, this commit and the next one add 32 lines of code (6 of them are empty lines) but removes 30 lines...