Skip to content

Commit

Permalink
Handle error if reader is invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
josephwoodward committed May 27, 2022
1 parent 4f71bfe commit 1305c95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion approvals.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func Verify(t Failable, reader io.Reader, opts ...verifyOptions) {
if len(opts) > 0 {
b, err := io.ReadAll(reader)
if err != nil {
// TODO: do something
panic(err)
}

result := string(b)
Expand Down

0 comments on commit 1305c95

Please sign in to comment.