Remove superfluous if/else branching
The `MarkupHelper#markup` method does everything we need here.
This commit is contained in:
parent
35fd7e6c53
commit
c398f40e5f
1 changed files with 2 additions and 6 deletions
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue