This is an automated email from the ASF dual-hosted git repository.

rabbah pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwhisk-client-go.git


The following commit(s) were added to refs/heads/master by this push:
     new 18a6a86  Removes pointer to pointer reference in activations (#156)
18a6a86 is described below

commit 18a6a867dd6fe81ad60ebb4dc65eb284e98ca9df
Author: Jon Friesen <[email protected]>
AuthorDate: Fri Oct 14 10:57:23 2022 -0600

    Removes pointer to pointer reference in activations (#156)
    
    PR #153 converts the whisk.Result type from a map[string]interface{} to
    an interface{} leaving Result type in whisk.Response as a pointer to
    Result which is now a pointer to a pointer.
    
    This change updates the Response.Result to remove the double pointer 
pointing.
---
 whisk/activation.go | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/whisk/activation.go b/whisk/activation.go
index 2082bfa..d021f97 100644
--- a/whisk/activation.go
+++ b/whisk/activation.go
@@ -60,10 +60,10 @@ type ActivationFilteredRow struct {
 }
 
 type Response struct {
-       Status     string  `json:"status"`
-       StatusCode int     `json:"statusCode"`
-       Success    bool    `json:"success"`
-       Result     *Result `json:"result,omitempty"`
+       Status     string `json:"status"`
+       StatusCode int    `json:"statusCode"`
+       Success    bool   `json:"success"`
+       Result     Result `json:"result,omitempty"`
 }
 
 type Result interface{}

Reply via email to