Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Merge pull request #10 from tschottdorf/disallow-unknown
Browse files Browse the repository at this point in the history
Compatibility with go1.9
  • Loading branch information
a-robinson authored Sep 20, 2018
2 parents b1ed8e6 + 0629985 commit 0647b87
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,10 @@ func processJSON(r *bufio.Reader, w io.Writer) {
}()

dec := json.NewDecoder(r)
dec.DisallowUnknownFields()
// This needs Go 1.10+, which we don't have on TeamCity at the
// time of writing.
//
// dec.DisallowUnknownFields()

for dec.More() {
var event TestEvent
Expand Down

0 comments on commit 0647b87

Please sign in to comment.