Skip to content

Commit

Permalink
dont do a redundant commit finder
Browse files Browse the repository at this point in the history
  • Loading branch information
ninjamuffin99 committed Jul 12, 2024
1 parent 17656ac commit 41a61a9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/commands/check_command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,8 @@ pub fn compare_haxelib_to_hmm(deps: &Dependancies) -> Result<Vec<&Haxelib>> {
None => String::new(),
};

let branch_commit = match repo.try_find_reference(branch_name.as_str()) {
Ok(h) => h.unwrap().id().to_string(),

Err(_) => String::new(),
};
let branch_commit = head_ref.to_string();
println!("Branch commit: {}", branch_name);

if haxelib.vcs_ref.as_ref().unwrap() != &head_ref_string
&& (haxelib.vcs_ref.as_ref().unwrap() != &branch_name
Expand Down

0 comments on commit 41a61a9

Please sign in to comment.