Skip to content

Commit

Permalink
remove useless function
Browse files Browse the repository at this point in the history
  • Loading branch information
o2sh committed Dec 12, 2022
1 parent 3cff2d2 commit 3c876f6
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/info/repo/contributors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,14 @@ impl ContributorsInfo {
number_of_authors_to_display: usize,
number_separator: NumberSeparator,
) -> Self {
let contributors = number_of_contributors(commits);
Self {
number_of_contributors: contributors,
number_of_contributors: commits.total_num_authors,
number_of_authors_to_display,
number_separator,
}
}
}

fn number_of_contributors(commits: &Commits) -> usize {
commits.total_num_authors
}

impl InfoField for ContributorsInfo {
const TYPE: InfoType = InfoType::Contributors;

Expand Down

0 comments on commit 3c876f6

Please sign in to comment.