Closed dkassen closed 9 months ago
I noticed this while digging down into the code here. The if was unnecessary, and so was rescuing an error in the specific case where body == " ", only to return the body anyway
if
body == " "
return
I removed all that and replaced it with some guard clauses.
related https://github.com/jejacks0n/apitome/pull/115
I noticed this while digging down into the code here. The
if
was unnecessary, and so was rescuing an error in the specific case wherebody == " "
, only toreturn
the body anywayI removed all that and replaced it with some guard clauses.