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:
parent
dbf787d6c9
commit
b4bcc852f2
@ -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!(
|
||||
|
Loading…
x
Reference in New Issue
Block a user