[#323] client: Remove xheaders length check in a common helper

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2022-08-26 13:20:30 +03:00 committed by fyrchik
parent d6d6a41f5d
commit 0e4d07fb06
6 changed files with 4 additions and 20 deletions

View file

@ -102,10 +102,6 @@ func (x *PrmObjectPutInit) MarkLocal() {
//
// Slice must not be mutated until the operation completes.
func (x *PrmObjectPutInit) WithXHeaders(hs ...string) {
if len(hs)%2 != 0 {
panic("slice of X-Headers with odd length")
}
writeXHeadersToMeta(hs, &x.meta)
}