Skip to content

Commit

Permalink
fix: dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
AhsanRns committed Apr 16, 2024
1 parent d5f5950 commit 3707ca8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions wallet/lib/services/data_stores/remote_data_store.dart
Original file line number Diff line number Diff line change
Expand Up @@ -893,16 +893,15 @@ class RemoteDataStoreImp implements RemoteDataStore {
try {
const r = RetryOptions(maxAttempts: 8);
final response = await r.retry(
// Make a GET request
() async{
final pylons.QueryClient queryClient = getQueryClient();
final request = pylons.QueryGetRecipeRequest.create()
..cookbookId = cookBookId.toString()
..id = recipeId.toString();
final thisA = await queryClient.recipe(request);
return thisA;
final thisRecipe = await queryClient.recipe(request);
return thisRecipe;
},
// Retry on SocketException or TimeoutException
// Retry on Exception or RecipeNotFoundFailure
retryIf: (e) => e is Exception || e is RecipeNotFoundFailure,
);

Expand Down Expand Up @@ -1090,7 +1089,6 @@ class RemoteDataStoreImp implements RemoteDataStore {

@override
Future<String> getAppCheckToken() async {
return "6B189291-D2AE-439B-AA5D-E2B99679C01E";
final String? token = await firebaseAppCheck.getToken();

if (token == null || token.isEmpty) {
Expand Down

0 comments on commit 3707ca8

Please sign in to comment.