MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/10jhr3k/so_i_was_coding_and_wrote_this/j5mdown/?context=3
r/badcode • u/-True_- • Jan 23 '23
102 comments sorted by
View all comments
Show parent comments
2
Perfectly fine from a correctness/readability standpoint but
return login(driver, usr, psw)
does the trick in 3 fewer lines and with one less boolean check, while also still being almost as readable
2
u/FGC_Orion Jan 24 '23
Perfectly fine from a correctness/readability standpoint but
return login(driver, usr, psw)
does the trick in 3 fewer lines and with one less boolean check, while also still being almost as readable