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
56 additions
and
53 deletions
-
Please register or sign in to post a comment