Skip to content

Commit

Permalink
read pat: break from loop so required return not useless
Browse files Browse the repository at this point in the history
  • Loading branch information
davemt committed Dec 2, 2016
1 parent 6f36c12 commit e34e117
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion psi/pat.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func ReadPAT(r io.Reader) (PAT, error) {
for pat == nil {
if _, err := io.ReadFull(r, pkt); err != nil {
if err == io.EOF || err == io.ErrUnexpectedEOF {
return nil, gots.ErrPATNotFound
break
}
return nil, err
}
Expand Down

0 comments on commit e34e117

Please sign in to comment.