Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

strictly speaking you could use the must pattern and wrap err in there to avoid the constant if err != nil

Albeit it transfers repetition from one place to another.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: