Skip to content

Commit

Permalink
go lint
Browse files Browse the repository at this point in the history
- Simple declaration
  • Loading branch information
mttrs committed Sep 8, 2015
1 parent 83e0ff4 commit 3292397
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func handleComments(w http.ResponseWriter, r *http.Request) {
switch r.Method {
case "POST":
// Decode the JSON data
comments := make([]comment, 0)
var comments []comment
if err := json.Unmarshal(commentData, &comments); err != nil {
http.Error(w, fmt.Sprintf("Unable to Unmarshal comments from data file (%s): %s", dataFile, err), http.StatusInternalServerError)
return
Expand Down

0 comments on commit 3292397

Please sign in to comment.