Skip to content

Commit

Permalink
Simplify comparison of author and committer
Browse files Browse the repository at this point in the history
  • Loading branch information
joshtriplett committed Oct 15, 2019
1 parent 21e9fc3 commit 3f0e5c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1778,7 +1778,7 @@ fn format(out: &mut Output, repo: &Repository, m: &ArgMatches) -> Result<()> {
};
writeln!(out, "Subject: {}{}\n", prefix, subject)?;

if !no_from && (commit_author_name != committer_name || commit_author_email != committer_email) {
if !no_from && (commit_author_name, commit_author_email) != (committer_name, committer_email) {
writeln!(out, "From: {} <{}>\n", commit_author_name, commit_author_email)?;
}
if !body.is_empty() {
Expand Down

0 comments on commit 3f0e5c2

Please sign in to comment.