Skip to content

Commit 4b173f8

Browse files
committed
Finally fix style issues
1 parent 48b2311 commit 4b173f8

File tree

2 files changed

+23
-22
lines changed

2 files changed

+23
-22
lines changed

firebase-functions/src/main/java/com/google/firebase/functions/FirebaseFunctions.java

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,10 @@ public HttpsCallableReference getHttpsCallable(@NonNull String name) {
204204
return new HttpsCallableReference(this, name);
205205
}
206206

207+
/** Returns a reference to the Callable HTTPS trigger with the provided url. */
207208
@NonNull
208209
public HttpsCallableReference getHttpsCallableFromUrl(@NonNull URL url) {
209-
return new HttpsCallableReference(this, url);
210+
return new HttpsCallableReference(this, url);
210211
}
211212

212213
/**
@@ -279,26 +280,27 @@ Task<HttpsCallableResult> call(String name, @Nullable Object data, HttpsCallOpti
279280
return call(url, data, context, options);
280281
});
281282
}
282-
/**
283-
* Calls a Callable HTTPS trigger endpoint.
284-
*
285-
* @param url The url of the HTTPS trigger
286-
* @param data Parameters to pass to the function. Can be anything encodable as JSON.
287-
* @return A Task that will be completed when the request is complete.
288-
*/
289-
Task<HttpsCallableResult> call(URL url, @Nullable Object data, HttpsCallOptions options) {
290-
return providerInstalled
291-
.getTask()
292-
.continueWithTask(task -> contextProvider.getContext())
293-
.continueWithTask(
294-
task -> {
295-
if (!task.isSuccessful()) {
296-
return Tasks.forException(task.getException());
297-
}
298-
HttpsCallableContext context = task.getResult();
299-
return call(url, data, context, options);
300-
});
301-
}
283+
284+
/**
285+
* Calls a Callable HTTPS trigger endpoint.
286+
*
287+
* @param url The url of the HTTPS trigger
288+
* @param data Parameters to pass to the function. Can be anything encodable as JSON.
289+
* @return A Task that will be completed when the request is complete.
290+
*/
291+
Task<HttpsCallableResult> call(URL url, @Nullable Object data, HttpsCallOptions options) {
292+
return providerInstalled
293+
.getTask()
294+
.continueWithTask(task -> contextProvider.getContext())
295+
.continueWithTask(
296+
task -> {
297+
if (!task.isSuccessful()) {
298+
return Tasks.forException(task.getException());
299+
}
300+
HttpsCallableContext context = task.getResult();
301+
return call(url, data, context, options);
302+
});
303+
}
302304

303305
/**
304306
* Calls a Callable HTTPS trigger endpoint.

firebase-functions/src/main/java/com/google/firebase/functions/HttpsCallableReference.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
import androidx.annotation.NonNull;
1818
import androidx.annotation.Nullable;
1919
import com.google.android.gms.tasks.Task;
20-
2120
import java.net.URL;
2221
import java.util.concurrent.TimeUnit;
2322

0 commit comments

Comments
 (0)