Fix some linter issues

This commit is contained in:
Guillaume Ballet
2019-02-21 19:43:14 +01:00
parent 7b230b7ef1
commit ae82c58631
2 changed files with 3 additions and 7 deletions

View File

@ -165,11 +165,7 @@ func (s *SecureChannelSession) Open() error {
// The IV is the last bytes returned from the Open APDU.
s.iv = response.Data[scSecretLength:]
if err := s.mutuallyAuthenticate(); err != nil {
return err
}
return nil
return s.mutuallyAuthenticate()
}
// mutuallyAuthenticate is an internal method to authenticate both ends of the