diff options
author | Erik Dubbelboer <erik@dubbelboer.com> | 2019-11-16 15:38:01 +0100 |
---|---|---|
committer | Erik Dubbelboer <erik@dubbelboer.com> | 2019-11-16 18:09:28 +0100 |
commit | 32793db72d04141d333eb04ce60170db6e79e6d2 (patch) | |
tree | 69735778f01c65ea864e696bec9fa08e83d85378 /bytesconv.go | |
parent | Add Client.MaxConnDuration (diff) | |
download | fasthttp-32793db72d04141d333eb04ce60170db6e79e6d2.tar.gz fasthttp-32793db72d04141d333eb04ce60170db6e79e6d2.tar.bz2 fasthttp-32793db72d04141d333eb04ce60170db6e79e6d2.zip |
Run golangci-lint using a Github Action
Diffstat (limited to 'bytesconv.go')
-rw-r--r-- | bytesconv.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bytesconv.go b/bytesconv.go index 2766794..e8fbabb 100644 --- a/bytesconv.go +++ b/bytesconv.go @@ -273,7 +273,9 @@ func readHexInt(r *bufio.Reader) (int, error) { if i == 0 { return -1, errEmptyHexNum } - r.UnreadByte() + if err := r.UnreadByte(); err != nil { + return -1, err + } return n, nil } if i >= maxHexIntChars { |