mirror of
https://github.com/dani-garcia/vaultwarden.wiki.git
synced 2026-10-25 10:56:49 +02:00
Fixed some lint issues
This commit is contained in:
11 files changed
+25
-27
No files matched your search
+1
-1
@@ -158,7 +158,7 @@ fn twofactor_auth(
|
||||
let providers: Vec<_> = twofactors.iter().map(|tf| tf.type_).collect();
|
||||
|
||||
// No twofactor token if twofactor is disabled
|
||||
if twofactors.len() == 0 {
|
||||
if twofactors.is_empty() {
|
||||
return Ok(None);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user