Y
Hacker News
new
|
ask
|
show
|
jobs
by
xkbarkar
459 days ago
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.