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,15 +256,14 @@ impl GitLabGlue {
.collect::<Vec<_>>();
for staff in state.staff() {
if !gitlab_group_member_names.contains(&staff.username) {
if self
if !gitlab_group_member_names.contains(&staff.username)
&& self
.add_group_member(action, &staff, group, DEFAULT_ARCH_LINUX_GROUP_ACCESS_LEVEL)
.await?
{
summary.add += 1;
}
}
}
for member in &archlinux_group_members {
if is_archlinux_bot(&member) {
......@@ -315,15 +314,14 @@ impl GitLabGlue {
.collect::<Vec<_>>();
for staff in state.staff() {
if !gitlab_group_member_names.contains(&staff.username) {
if self
if !gitlab_group_member_names.contains(&staff.username)
&& self
.add_group_member(action, &staff, group, DEFAULT_STAFF_GROUP_ACCESS_LEVEL)
.await?
{
summary.add += 1;
}
}
}
for member in &archlinux_group_members {
if is_archlinux_bot(&member) {
......@@ -373,8 +371,8 @@ impl GitLabGlue {
let state = self.state.lock().await;
for staff in state.devops() {
if !group_member_names.contains(&staff.username) {
if self
if !group_member_names.contains(&staff.username)
&& self
.add_group_member(
action,
&staff,
......@@ -386,7 +384,6 @@ impl GitLabGlue {
summary.add += 1;
}
}
}
for member in &group_members {
if is_archlinux_bot(&member) {
......
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