Skip to content

Commit

Permalink
add nil check
Browse files Browse the repository at this point in the history
  • Loading branch information
odanado committed Aug 12, 2024
1 parent 0ead87b commit b192a9d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,11 @@ func main() {
}

if options.json {

if result == nil {
result = &Result{}
}

resultJson, err := getResultJson(*result)

if err != nil {
Expand Down

0 comments on commit b192a9d

Please sign in to comment.