jejacks0n / apitome

Apitome: /iˈpitəmē/ An API documentation presentation layer for RSpec API Documentation output.
250 stars 126 forks source link

Remove unnecessary error handling from formatted_body method #112

Closed dkassen closed 9 months ago

dkassen commented 5 years 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

I removed all that and replaced it with some guard clauses.

bf4 commented 4 years ago

related https://github.com/jejacks0n/apitome/pull/115