Verified Commit fd923d22 authored by Levente Polyak's avatar Levente Polyak 🚀
Browse files

chore: fix collapsible-if clippy warnings

parent 1b95f12b
Pipeline #15029 passed with stage
in 26 seconds
...@@ -256,13 +256,12 @@ impl GitLabGlue { ...@@ -256,13 +256,12 @@ impl GitLabGlue {
.collect::<Vec<_>>(); .collect::<Vec<_>>();
for staff in state.staff() { for staff in state.staff() {
if !gitlab_group_member_names.contains(&staff.username) { if !gitlab_group_member_names.contains(&staff.username)
if self && self
.add_group_member(action, &staff, group, DEFAULT_ARCH_LINUX_GROUP_ACCESS_LEVEL) .add_group_member(action, &staff, group, DEFAULT_ARCH_LINUX_GROUP_ACCESS_LEVEL)
.await? .await?
{ {
summary.add += 1; summary.add += 1;
}
} }
} }
...@@ -315,13 +314,12 @@ impl GitLabGlue { ...@@ -315,13 +314,12 @@ impl GitLabGlue {
.collect::<Vec<_>>(); .collect::<Vec<_>>();
for staff in state.staff() { for staff in state.staff() {
if !gitlab_group_member_names.contains(&staff.username) { if !gitlab_group_member_names.contains(&staff.username)
if self && self
.add_group_member(action, &staff, group, DEFAULT_STAFF_GROUP_ACCESS_LEVEL) .add_group_member(action, &staff, group, DEFAULT_STAFF_GROUP_ACCESS_LEVEL)
.await? .await?
{ {
summary.add += 1; summary.add += 1;
}
} }
} }
...@@ -373,8 +371,8 @@ impl GitLabGlue { ...@@ -373,8 +371,8 @@ impl GitLabGlue {
let state = self.state.lock().await; let state = self.state.lock().await;
for staff in state.devops() { for staff in state.devops() {
if !group_member_names.contains(&staff.username) { if !group_member_names.contains(&staff.username)
if self && self
.add_group_member( .add_group_member(
action, action,
&staff, &staff,
...@@ -382,9 +380,8 @@ impl GitLabGlue { ...@@ -382,9 +380,8 @@ impl GitLabGlue {
DEVOPS_INFRASTRUCTURE_ACCESS_LEVEL, DEVOPS_INFRASTRUCTURE_ACCESS_LEVEL,
) )
.await? .await?
{ {
summary.add += 1; summary.add += 1;
}
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment