Clippy: don't if true return true else return false

This commit is contained in:
Graham Christensen 2019-01-01 21:30:22 -05:00
parent 8fb7eab5e0
commit cb7012e6e9
No known key found for this signature in database
GPG key ID: ACA1C1D120C83D5C

View file

@ -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"
}
}
}