Skip to content

Commit

Permalink
Fix checkstyle errors
Browse files Browse the repository at this point in the history
  • Loading branch information
JorgeMucientes committed Nov 18, 2024
1 parent 23c0200 commit 717e419
Showing 1 changed file with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@

import androidx.annotation.NonNull;

import com.android.volley.Cache;
import com.android.volley.NetworkResponse;
import com.android.volley.ParseError;
import com.android.volley.Request;
import com.android.volley.RequestQueue;
import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.HttpHeaderParser;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
Expand Down Expand Up @@ -36,15 +45,6 @@
import javax.inject.Inject;
import javax.inject.Named;

import com.android.volley.Cache;
import com.android.volley.NetworkResponse;
import com.android.volley.ParseError;
import com.android.volley.Request;
import com.android.volley.RequestQueue;
import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.HttpHeaderParser;

public class Authenticator {
private static final String WPCOM_OAUTH_PREFIX = "https://public-api.wordpress.com/oauth2";
private static final String WPCOM_PREFIX = "https://wordpress.com";
Expand Down Expand Up @@ -327,7 +327,7 @@ public void sendAuthEmail(final AuthEmailPayload payload) {
params.put("signup_flow_name", payload.signupFlowName);
}

if(payload.isSignup) {
if (payload.isSignup) {
params.put("create_account", true);
}

Expand All @@ -350,7 +350,7 @@ public void onErrorResponse(@NonNull WPComGsonNetworkError error) {
mDispatcher.dispatch(AuthenticationActionBuilder.newSentAuthEmailAction(responsePayload));
}
}
);
);
request.addQueryParameter("locale", LanguageUtils.getPatchedCurrentDeviceLanguage(mAppContext));

mRequestQueue.add(request);
Expand Down

0 comments on commit 717e419

Please sign in to comment.