Make new clippy happy

This commit is contained in:
2021-12-21 16:15:12 +01:00
parent 0b181b9b79
commit 4a9f1bc278
2 changed files with 3 additions and 2 deletions

View File

@@ -140,8 +140,8 @@ fn main() {
let split = branch.split_once('/');
if split.is_none()
|| split.unwrap().0.len() == 0
|| split.unwrap().1.len() == 0
|| split.unwrap().0.is_empty()
|| split.unwrap().1.is_empty()
{
print_error("Tracking branch needs to match the pattern <remote>/<branch_name>");
process::exit(1);