Skip to content

Commit

Permalink
fix: don't include empty commits
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Clemens committed Jul 1, 2018
1 parent 7817211 commit c6b6ab9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion webserver/src/routes/web/pastes/revisions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ fn get(username: String, id: PasteId, config: State<Config>, user: OptionalWebUs
true
})?;

diffs.push(diff_str);
if !diff_str.is_empty() {
diffs.push(diff_str);
}

match parent {
DiffArg::Commit(c) => commit = c,
Expand Down

0 comments on commit c6b6ab9

Please sign in to comment.