Clippy: don't if true return true else return false
This commit is contained in:
parent
8fb7eab5e0
commit
cb7012e6e9
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue