TRIVIAL: remove useless condition

This commit is contained in:
Régis Hanol 2014-03-11 19:06:36 +01:00
parent aece2b61a9
commit 5ffcfb1a8c

View file

@ -47,12 +47,7 @@ Discourse.HistoryController = Discourse.ObjectController.extend(Discourse.ModalF
if(viewMode === "side_by_side_markdown" || viewMode === "side_by_side") { if(viewMode === "side_by_side_markdown" || viewMode === "side_by_side") {
raw = "<div class='span8'>" + prevCategory + "</div> <div class='span8 offset1'>" + curCategory + "</div>"; raw = "<div class='span8'>" + prevCategory + "</div> <div class='span8 offset1'>" + curCategory + "</div>";
} else { } else {
var diff; var diff = "<del>" + prevCategory + "</del> " + "<ins>" + curCategory + "</ins>";
if(curCategory === prevCategory){
diff = curCategory;
} else {
diff = "<del>" + prevCategory + "</del> " + "<ins>" + curCategory + "</ins>";
}
raw = "<div class='inline-diff'>" + diff + "</div>"; raw = "<div class='inline-diff'>" + diff + "</div>";
} }