mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
TRIVIAL: remove useless condition
This commit is contained in:
parent
aece2b61a9
commit
5ffcfb1a8c
1 changed files with 1 additions and 6 deletions
|
@ -47,12 +47,7 @@ Discourse.HistoryController = Discourse.ObjectController.extend(Discourse.ModalF
|
|||
if(viewMode === "side_by_side_markdown" || viewMode === "side_by_side") {
|
||||
raw = "<div class='span8'>" + prevCategory + "</div> <div class='span8 offset1'>" + curCategory + "</div>";
|
||||
} else {
|
||||
var diff;
|
||||
if(curCategory === prevCategory){
|
||||
diff = curCategory;
|
||||
} else {
|
||||
diff = "<del>" + prevCategory + "</del> " + "<ins>" + curCategory + "</ins>";
|
||||
}
|
||||
var diff = "<del>" + prevCategory + "</del> " + "<ins>" + curCategory + "</ins>";
|
||||
raw = "<div class='inline-diff'>" + diff + "</div>";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue