Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

Commit

Permalink
Fix JSON unmarshal (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
micnncim authored Dec 14, 2019
1 parent af7bac2 commit 8f649b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/action-lgtm-reaction/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8f649b7

Please sign in to comment.