refactor: Decompose archive func
This commit is contained in:
@@ -65,7 +65,7 @@ func ParseIdentity(
|
||||
case config.NoneKey:
|
||||
return privkey, nil
|
||||
default:
|
||||
return nil, config.ErrUnsupportedEncryptionFormat
|
||||
return nil, config.ErrEncryptionFormatUnsupported
|
||||
}
|
||||
}
|
||||
|
||||
@@ -82,6 +82,6 @@ func ParseSignerIdentity(
|
||||
case config.NoneKey:
|
||||
return privkey, nil
|
||||
default:
|
||||
return nil, config.ErrUnsupportedSignatureFormat
|
||||
return nil, config.ErrSignatureFormatUnsupported
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ func ParseRecipient(
|
||||
case config.NoneKey:
|
||||
return pubkey, nil
|
||||
default:
|
||||
return nil, config.ErrUnsupportedEncryptionFormat
|
||||
return nil, config.ErrEncryptionFormatUnsupported
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,6 +42,6 @@ func ParseSignerRecipient(
|
||||
case config.NoneKey:
|
||||
return pubkey, nil
|
||||
default:
|
||||
return nil, config.ErrUnsupportedSignatureFormat
|
||||
return nil, config.ErrSignatureFormatUnsupported
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user