mirror of
https://github.com/pcvolkmer/osc-variant.git
synced 2025-04-19 19:56: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![];
|
let mut result = vec![];
|
||||||
|
|
||||||
if missing_forms.len() > 0 {
|
if !missing_forms.is_empty() {
|
||||||
result.push(ErrorWithCode {
|
result.push(ErrorWithCode {
|
||||||
code: "2024-0005".to_string(),
|
code: "2024-0005".to_string(),
|
||||||
description: format!(
|
description: format!(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user