From a0b70abab274e0a0b142a7f4b19403b0165c146a Mon Sep 17 00:00:00 2001 From: Mo <10432473+morrieinmaas@users.noreply.github.com> Date: Wed, 2 Mar 2022 21:03:26 +0000 Subject: [PATCH] feat: better check on attribute length (#80) --- cli/src/modules/schema.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/modules/schema.rs b/cli/src/modules/schema.rs index 62c313ed..8eb4141f 100644 --- a/cli/src/modules/schema.rs +++ b/cli/src/modules/schema.rs @@ -62,7 +62,7 @@ pub async fn parse_schema_args( version: version.to_string(), attributes: attributes.to_vec(), }; - if options.attributes.len() == 0 { + if options.attributes.is_empty() { return Err(Error::RequiredAttributes.into()); } agent