I am trying to set up my queries to use APQ, but the request is always being sent twice. I see why that is happening in the code here, but I must be missing something. The way I am reading this, every code path that uses APQ assumes the request failed and resends it. It seems like the else here is not needed (or alternatively should be an else if), as there is no indication that the request did not succeed. Any help understanding this would be much appreciated.