Skip to content

Commit

Permalink
fix: error handling in OCF example (#483)
Browse files Browse the repository at this point in the history
Signed-off-by: Mihai Todor <[email protected]>
  • Loading branch information
mihaitodor authored Dec 13, 2024
1 parent 45d131b commit cb79c9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ocf/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func ExampleNewDecoder() {
// Do something with the data
}

if dec.Error() != nil {
if err := dec.Error(); err != nil {
log.Fatal(err)
}
}
Expand Down

0 comments on commit cb79c9f

Please sign in to comment.