From cb7012e6e9f1c0752e68f8faec10d72b8de08442 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Tue, 1 Jan 2019 21:30:22 -0500 Subject: [PATCH] Clippy: don't if true return true else return false --- ofborg/src/acl.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ofborg/src/acl.rs b/ofborg/src/acl.rs index 0814299..4494b58 100644 --- a/ofborg/src/acl.rs +++ b/ofborg/src/acl.rs @@ -53,10 +53,8 @@ impl ACL { pub fn can_build_unrestricted(&self, user: &str, repo: &str) -> bool { if repo.to_lowercase() == "nixos/nixpkgs" { self.trusted_users.contains(&user.to_lowercase()) - } else if user == "grahamc" { - true } else { - false + user == "grahamc" } } }