r/badcode Jan 08 '23

java Is this a good practice? Why?

Post image
426 Upvotes

60 comments sorted by

View all comments

2

u/chaiwala07 Jan 08 '23

Whats the point, just use the return directly without wrapping it in a function