Learn more about cloning repositories
You have read-only access
Be brief: turn 7 lines of if-else to one line of ?:. Be sensible: don't assert a pointer we just dereferenced is non-NULL.