Skip to content

Commit 5f99474

Browse files
author
Tkc
authored
Merge pull request #7 from evtatarintsev/master
Correct check unmarshal error
2 parents 519acd8 + b6f2a8c commit 5f99474

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go-json-server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func main() {
104104
os.Exit(1)
105105
}
106106

107-
json.Unmarshal(raw, &api)
107+
err = json.Unmarshal(raw, &api)
108108
if err != nil {
109109
log.Fatal(" ", err)
110110
}

0 commit comments

Comments
 (0)