Skip to content

Commit f18fdf4

Browse files
committed
Format files.
1 parent c0c1c5c commit f18fdf4

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

firebase-config/src/main/java/com/google/firebase/remoteconfig/internal/ConfigRealtimeHttpClient.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -310,11 +310,11 @@ public void onError(Exception error) {
310310
// HTTP status code that the Realtime client should retry on.
311311
private boolean isStatusCodeRetryable(int statusCode) {
312312
return statusCode == HttpURLConnection.HTTP_CLIENT_TIMEOUT
313-
|| statusCode == HTTP_TOO_MANY_REQUESTS
314-
|| statusCode == HttpURLConnection.HTTP_BAD_GATEWAY
315-
|| statusCode == HttpURLConnection.HTTP_UNAVAILABLE
316-
|| statusCode == HttpURLConnection.HTTP_GATEWAY_TIMEOUT
317-
|| statusCode == HttpURLConnection.HTTP_OK;
313+
|| statusCode == HTTP_TOO_MANY_REQUESTS
314+
|| statusCode == HttpURLConnection.HTTP_BAD_GATEWAY
315+
|| statusCode == HttpURLConnection.HTTP_UNAVAILABLE
316+
|| statusCode == HttpURLConnection.HTTP_GATEWAY_TIMEOUT
317+
|| statusCode == HttpURLConnection.HTTP_OK;
318318
}
319319

320320
/**
@@ -353,8 +353,8 @@ public synchronized void beginRealtimeHttpStream() {
353353
retryHTTPConnection();
354354
} else {
355355
propagateErrors(
356-
new FirebaseRemoteConfigRealtimeUpdateStreamException(
357-
"The server returned a status code that is not retryable. Realtime is shutting down."));
356+
new FirebaseRemoteConfigRealtimeUpdateStreamException(
357+
"The server returned a status code that is not retryable. Realtime is shutting down."));
358358
}
359359
}
360360
}

firebase-config/src/test/java/com/google/firebase/remoteconfig/FirebaseRemoteConfigTest.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -276,13 +276,13 @@ public void setUp() throws Exception {
276276
configAutoFetch =
277277
new ConfigAutoFetch(mockHttpURLConnection, mockFetchHandler, listeners, mockRetryListener);
278278
configRealtimeHttpClient =
279-
new ConfigRealtimeHttpClient(
280-
firebaseApp,
281-
mockFirebaseInstallations,
282-
mockFetchHandler,
283-
context,
284-
"firebase",
285-
listeners);
279+
new ConfigRealtimeHttpClient(
280+
firebaseApp,
281+
mockFirebaseInstallations,
282+
mockFetchHandler,
283+
context,
284+
"firebase",
285+
listeners);
286286
}
287287

288288
@Test

0 commit comments

Comments
 (0)