@forge/cli-shared

9.7.0-next.14-experimental-fd0ebbc9.7.0-next.16
out/graphql/get-mutation-error.js
~out/graphql/get-mutation-error.jsModified
−8
Index: package/out/graphql/get-mutation-error.js
===================================================================
--- package/out/graphql/get-mutation-error.js
+++ package/out/graphql/get-mutation-error.js
@@ -1,15 +1,7 @@
 "use strict";
 Object.defineProperty(exports, "__esModule", { value: true });
-exports.requireMutationPayload = requireMutationPayload;
 exports.getError = getError;
-const mutation_aware_graphql_client_1 = require("./mutation-aware-graphql-client");
-function requireMutationPayload(value, requestId) {
-    if (value == null) {
-        throw new mutation_aware_graphql_client_1.GraphQlMutationError(`Unable to get a response (requestId: ${requestId || 'unknown'})`, { requestId });
-    }
-    return value;
-}
 function getError(errors) {
     const error = errors?.[0];
     return {
         code: error?.extensions?.errorType || undefined,