1
0
mirror of https://github.com/pcvolkmer/osc-variant.git synced 2025-04-19 11:46:50 +00:00

refactor: use is_empty() instead of len check (#39)

This commit is contained in:
Paul-Christian Volkmer 2024-11-07 20:00:48 +01:00 committed by GitHub
parent dbf787d6c9
commit b4bcc852f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -424,7 +424,7 @@ impl<Type> Form<Type> {
let mut result = vec![];
if missing_forms.len() > 0 {
if !missing_forms.is_empty() {
result.push(ErrorWithCode {
code: "2024-0005".to_string(),
description: format!(