Invert conditional to remove a level of indentation
The segment response callback was getting pretty deeply nested, so invert the readyState check and return early. Also added some comments.
Showing
1 changed file
with
17 additions
and
14 deletions
-
Please register or sign in to post a comment