Skip to content

Commit

Permalink
feat: better check on attribute length (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
morrieinmaas authored Mar 2, 2022
1 parent 631cddb commit a0b70ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/src/modules/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a0b70ab

Please sign in to comment.