libct/keys: stop using pkg/errors

Use fmt.Errorf with %w instead.

Convert the users to the new wrapping.

This fixes an errorlint warning.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
Kir Kolyshkin
2021-06-08 20:59:05 -07:00
parent adbac31d88
commit c6fed264da
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ func (l *linuxSetnsInit) Init() error {
// don't bail on ENOSYS.
//
// TODO(cyphar): And we should have logging here too.
if errors.Cause(err) != unix.ENOSYS {
if !errors.Is(err, unix.ENOSYS) {
return errors.Wrap(err, "join session keyring")
}
}