Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkdev98 committed Jul 1, 2023
1 parent 8cac7d5 commit 9616a00
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion boa_engine/src/builtins/regexp/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1040,7 +1040,8 @@ impl RegExp {
// 30. If R contains any GroupName, then
// 31. Else,
// 33. For each integer i such that 1 ≤ i ≤ n, in ascending order, do
let (groups, group_names) = if named_groups.clone().len() > 0 {
#[allow(clippy::if_not_else)]
let (groups, group_names) = if !named_groups.clone().is_empty() {
// a. Let groups be OrdinaryObjectCreate(null).
let groups = JsObject::with_null_proto();
let group_names = JsObject::with_null_proto();
Expand Down

0 comments on commit 9616a00

Please sign in to comment.