From b8d1b63b9739f44fcc6d177ffda8b4bfd661ef37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thoralf=20M=C3=BCller?= Date: Fri, 12 Jan 2024 12:24:12 +0100 Subject: [PATCH] Remove duplicated validation --- sdk/src/types/block/output/feature/metadata.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sdk/src/types/block/output/feature/metadata.rs b/sdk/src/types/block/output/feature/metadata.rs index cb61c3c464..467886cca0 100644 --- a/sdk/src/types/block/output/feature/metadata.rs +++ b/sdk/src/types/block/output/feature/metadata.rs @@ -42,11 +42,6 @@ fn verify_keys_packable( >, ) -> Result<(), Error> { if VERIFY { - if map.is_empty() { - return Err(Error::InvalidMetadataFeatureKeyLength( - MetadataFeatureKeyLength::try_from(0u8).unwrap_err().into(), - )); - } for key in map.keys() { if !key.iter().all(|b| b.is_ascii_graphic()) { return Err(Error::NonGraphicAsciiMetadataKey(key.to_vec()));