Small refactoring to eliminate unneeded Result objects.

PiperOrigin-RevId: 250889189
Change-Id: I288e8cd1f6835fd95bc20f94ee8adc2fd2c15bff
diff --git a/src/main/java/com/google/android/libraries/feed/feedprotocoladapter/FeedProtocolAdapter.java b/src/main/java/com/google/android/libraries/feed/feedprotocoladapter/FeedProtocolAdapter.java
index 38c4f48..5c6fcce 100644
--- a/src/main/java/com/google/android/libraries/feed/feedprotocoladapter/FeedProtocolAdapter.java
+++ b/src/main/java/com/google/android/libraries/feed/feedprotocoladapter/FeedProtocolAdapter.java
@@ -106,14 +106,8 @@
 
     FeedResponse feedResponse = response.getExtension(FeedResponse.feedResponse);
     Logger.i(TAG, "createModel, operations %s", feedResponse.getDataOperationCount());
-    Result<List<StreamDataOperation>> result =
-        createOperations(
-            feedResponse.getDataOperationList(), feedResponse.getFeedResponseMetadata());
-    if (!result.isSuccessful()) {
-      return Result.failure();
-    }
-    List<StreamDataOperation> streamDataOperations = result.getValue();
-    return Result.success(streamDataOperations);
+    return createOperations(
+        feedResponse.getDataOperationList(), feedResponse.getFeedResponseMetadata());
   }
 
   @Override
diff --git a/src/main/java/com/google/android/libraries/feed/feedrequestmanager/FeedRequestManagerImpl.java b/src/main/java/com/google/android/libraries/feed/feedrequestmanager/FeedRequestManagerImpl.java
index 4db8c29..9a20772 100644
--- a/src/main/java/com/google/android/libraries/feed/feedrequestmanager/FeedRequestManagerImpl.java
+++ b/src/main/java/com/google/android/libraries/feed/feedrequestmanager/FeedRequestManagerImpl.java
@@ -299,14 +299,8 @@
             return;
           }
           Result<List<StreamDataOperation>> result = protocolAdapter.createModel(response);
-          final Result<List<StreamDataOperation>> contextResult;
-          if (result.isSuccessful()) {
-            contextResult = Result.success(result.getValue());
-          } else {
-            contextResult = Result.failure();
-          }
           mainThreadRunner.execute(
-              "FeedRequestManagerImpl consumer", () -> consumer.accept(contextResult));
+              "FeedRequestManagerImpl consumer", () -> consumer.accept(result));
         });
   }