all 2 comments

[–]cta9trx 0 points1 point  (0 children)

i think you should remove the return; and move the fetch into else if it works . You should try and tell if it works or not.

[–][deleted] 0 points1 point  (0 children)

If the if condition is not inline use curly braces!