From 8f649b73b219b4577f11f975961aa64416f41647 Mon Sep 17 00:00:00 2001 From: micnncim Date: Sat, 14 Dec 2019 14:41:45 +0900 Subject: [PATCH] Fix JSON unmarshal (#30) --- cmd/action-lgtm-reaction/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/action-lgtm-reaction/main.go b/cmd/action-lgtm-reaction/main.go index 2c3ac55..376c48b 100644 --- a/cmd/action-lgtm-reaction/main.go +++ b/cmd/action-lgtm-reaction/main.go @@ -162,11 +162,11 @@ func getGitHubEvent() (*GitHubEvent, error) { return nil, err } defer f.Close() - var e *GitHubEvent - if err := json.NewDecoder(f).Decode(e); err != nil { + var e GitHubEvent + if err := json.NewDecoder(f).Decode(&e); err != nil { return nil, err } - return e, nil + return &e, nil } func getGitHubRepo() (owner, repo string, err error) {