Remove superfluous if/else branching

The `MarkupHelper#markup` method does everything we need here.
This commit is contained in:
Toon Claes 2017-04-26 23:16:59 +02:00
parent 35fd7e6c53
commit c398f40e5f

View file

@ -1,12 +1,8 @@
.diff-file
.diff-content
- if gitlab_markdown?(@blob.name)
- if markup?(@blob.name)
.file-content.wiki
= preserve do
= markdown(@content)
- elsif markup?(@blob.name)
.file-content.wiki
= raw markup(@blob.name, @content)
= markup(@blob.name, @content)
- else
.file-content.code.js-syntax-highlight
- unless @diff_lines.empty?