Skip to content

Commit

Permalink
Format example
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Jul 30, 2020
1 parent d90bde8 commit 2c0fc62
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ func handler(w http.ResponseWriter, req *http.Request) {
return
}

data, err := json.Marshal(badge)
if err != nil {
data, err := json.Marshal(badge)
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
}

w.Header().Set("Content-Type", "application/json")
w.Write(data)
w.Header().Set("Content-Type", "application/json")
w.Write(data)
}
```

0 comments on commit 2c0fc62

Please sign in to comment.