Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
vlnevyhosteny committed Dec 1, 2023
1 parent 9740fa3 commit 33003a4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/connector/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ func WithClientCertificate(clientCertificatePath string) AuthenticationMethod {
}

bytes := make([]byte, fileInfo.Size())
file.Read(bytes)
_, err = file.Read(bytes)
if err != nil {
return nil, wrapError(err, "error reading client certificate file")
}

certs, key, err := azidentity.ParseCertificates(bytes, nil)
if err != nil {
Expand Down

0 comments on commit 33003a4

Please sign in to comment.